Plot from a jpeg
On 27.11.2012 22:38, bgnumis wrote:
Hi all, I know that I can for instance draw to plots in one using nf<-layout(matrix(c(1,2),1,2,byrow=FALSE)) Imagine I have 3 files: plot1.jpeg plot2.jpeg plot3.jpeg Anyone knows if I can read them and put on one colum and three rows reading directly from the jpeg file?
Yes, there are many packages around,
One idea:
download.file("http://www.user2007.org/photos/r-cake.jpg", jpfile <-
tempfile(), mode="wb")
library("ReadImages")
jp <- read.jpeg(jpfile)
par(mfrow=c(3,1))
plot(jp)
plot(jp)
plot(jp)
Best,
Uwe Ligges
Many Thanks [[alternative HTML version deleted]]
______________________________________________ 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.