[R] adding an image to a plot
Rajarshi Guha
rguha at indiana.edu
Tue Nov 20 15:26:35 CET 2007
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
More information about the R-help
mailing list