Which one do you want? library(lattice) d <- data.frame(x = rep(1:3, 4), g = factor(rep(1:4, each = 3)), y = c(1, 2, 3, 3, 1, 7, 4, 2, 11, 5, 5, 9)) xyplot(y ~ x | g, data = d, pch = 16) xyplot(y ~ x, data = d, groups = g, type = c('p', 'l'), pch = 16)
Both provide 'multiple plots' and both are on the 'same page'. HTH, Dennis On Fri, Sep 24, 2010 at 2:37 PM, <mrdaw...@abo.fi> wrote: > Dear R users; > Could you tell me how to let R create multiple graphs in a graph window. > Please note that I am talking about creating multiple plots in the same page > of the graph window. For example: > g1=c(1,2,3) > g2=c(3,1,7) > g3=c(4,2,11) > g4=c(5,5,9) > ... > all in one graph window. > Best Regards > Reza > > ______________________________________________ > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.