Re: [R] Plot .jpeg image in margins?

From: Greg Snow <Greg.Snow_at_intermountainmail.org>
Date: Mon 08 Jan 2007 - 18:25:50 GMT


Here is one example of a way to do it:

library(rimage) # for the read.jpeg function library(TeachingDemos) # for the subplot function

par(xpd=NA,mar=c(5,4,4,8)+0.1)

plot(1:10,10:1)

x <- read.jpeg(system.file("data", "cat.jpg", package="rimage"))

subplot( plot(x), 12, 5 )

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow@intermountainmail.org
(801) 408-8111
 
 


> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Kari
> Sent: Sunday, January 07, 2007 10:10 PM
> To: r-help@stat.math.ethz.ch
> Subject: [R] Plot .jpeg image in margins?
>
> Is it possible to plot an image (currently a jpeg) in the margins?
>
>
> Thanks,
> Kari
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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@stat.math.ethz.ch 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.
Received on Tue Jan 09 05:34:21 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 08 Jan 2007 - 20:30:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.