[R] adding an image to a plot

Gabor Grothendieck ggrothendieck at gmail.com
Tue Nov 20 15:41:56 CET 2007


Check out this thread:

http://tolstoy.newcastle.edu.au/R/e2/help/07/04/14273.html

On Nov 20, 2007 9:26 AM, Rajarshi Guha <rguha at indiana.edu> wrote:
> Hi, I'm writing code to generate a plot, in which I draw a series of
> rectangles. So my code is of the form
>
> plot.new()
> plot.window( ... )
>
> draw rectangle
> draw rectangle
> ...
>
> Is there a way for me to insert a PNG or PDF graphic at a specific
> position in the plot (ideally in  plot coordinates)? I realize that
> this might probably be better done in a separate image editor, but if
> it could be done programmatically that would be very handy
>
> Thanks,
>
> -------------------------------------------------------------------
> Rajarshi Guha  <rguha at indiana.edu>
> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04  06F7 1BB9 E634 9B87 56EE
> -------------------------------------------------------------------
> So the Zen master asked the hot-dog vendor,
> "Can you make me one with everything?"
>         - TauZero on Slashdot
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



More information about the R-help mailing list