I would like to combine multiple pairs plots (each one being a matrix of correlation plots) into a single graphic. I have tried the par() function, which works well to combine several simple graphs. However, the pairs() graph seems to override the par() function and produce an new plot, rather than combining the plots into a single graphic. Thanks, Jesse
Don't know if it will work, but did you try ?layout ? Cheers Joris On Thu, Oct 15, 2009 at 2:39 PM, Jesse Poland <jap226 at cornell.edu> wrote:> I would like to combine multiple pairs plots (each one being a matrix of > correlation plots) into a single graphic. I have tried the par() function, > which works well to combine several simple graphs. However, the pairs() > graph seems to override the par() function and produce an new plot, rather > than combining the plots into a single graphic. > > Thanks, > Jesse > > ______________________________________________ > 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. >
Don't know if it will work, but did you try ?layout ? Otherwise you can take a look at ?split.screen too. Cheers Joris On Thu, Oct 15, 2009 at 2:39 PM, Jesse Poland <jap226 at cornell.edu> wrote:> I would like to combine multiple pairs plots (each one being a matrix of > correlation plots) into a single graphic. I have tried the par() function, > which works well to combine several simple graphs. However, the pairs() > graph seems to override the par() function and produce an new plot, rather > than combining the plots into a single graphic. > > Thanks, > Jesse > > ______________________________________________ > 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. >
Jesse Poland wrote:> I would like to combine multiple pairs plots (each one being a matrix > of correlation plots) into a single graphic. I have tried the par() > function, which works well to combine several simple graphs. However, > the pairs() graph seems to override the par() function and produce an > new plot, rather than combining the plots into a single graphic.This looks like a job for splom in lattice. library(lattice) tmp <- cbind(environmental, group=rep(1:2, length=111)) splom( ~ tmp[,1:4] | tmp$group)