The subplot function in the TeachingDemos package will create a new plot inside 
of the existing one, so if you can plot your one image, the subplot function 
will help (using base graphics).  The EBImage package may help with the reading 
and plotting of the figure.  (there is also grImport, but it looks like it is 
fully grid based which is harder to work with base plots, on the other hand if 
your plot is grid based, then it will work better than subplot).

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111


> -----Original Message-----
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of mnstn
> Sent: Thursday, March 25, 2010 8:16 AM
> To: r-help@r-project.org
> Subject: [R] Insert .eps files in to an R plot.
> 
> 
> Hello Everybody,
> I have an eps figure an awesome bacteria and a plot (generated using R)
> also
> in eps format. Now it looks like there is space for only one figure and
> I
> have to insert the picture of the bacteria into the plot. Is there a
> way to
> insert figures (eps/png/jpg) in to plots (may be control over placement
> of
> figures in the plot as well?) ? By plots I mean data represented using
> axes
> and points and such and by figures I mean cartoons, pictures taken by a
> camera and such.
> Thanks,
> MoonStone
> --
> View this message in context: http://n4.nabble.com/Insert-eps-files-in-
> to-an-R-plot-tp1690704p1690704.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help@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.

______________________________________________
R-help@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.

Reply via email to