[R] adding an image to a plot
jombart at biomserv.univ-lyon1.fr
jombart at biomserv.univ-lyon1.fr
Tue Nov 20 16:21:44 CET 2007
Selon Rajarshi Guha <rguha at indiana.edu>:
> 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,
Hi,
you can insert pixmaps at specified coordinates using s.logo in the ade4
package.
Regards,
Thibaut.
More information about the R-help
mailing list