Hi, I'm trying to plot several lag.plots on a page, however the second plot replaces the first one (although it only takes up the upper half as it should): par(mfrow=c(2,1)) a<-sin(1:100) b<-cos(1:100) lag.plot(a) lag.plot(b) What's the trick to this? I'm using R 2.2.1 (2005-12-20 r36812) on Ubuntu Linux. Thanks, Gad -- Gad Abraham Department of Mathematics and Statistics University of Melbourne Victoria 3010, Australia email: g.abraham at ms.unimelb.edu.au web: http://www.ms.unimelb.edu.au/~gabraham
Does this help?> pdf(file="lag.pdf") > lag.plot(a) > lag.plot(b) > dev.off()After that you can open each page of the "lag.pdf" file with GIMP for further manipulation. It gives each plot on a different page, but no plot is replaced. Hope it helps 2006/6/13, Gad Abraham <g.abraham@ms.unimelb.edu.au>:> > Hi, > > I'm trying to plot several lag.plots on a page, however the second plot > replaces the first one (although it only takes up the upper half as it > should): > > par(mfrow=c(2,1)) > a<-sin(1:100) > b<-cos(1:100) > lag.plot(a) > lag.plot(b) > > What's the trick to this? > > I'm using R 2.2.1 (2005-12-20 r36812) on Ubuntu Linux. > > Thanks, > Gad > > > -- > Gad Abraham > Department of Mathematics and Statistics > University of Melbourne > Victoria 3010, Australia > email: g.abraham@ms.unimelb.edu.au > web: http://www.ms.unimelb.edu.au/~gabraham > > ______________________________________________ > 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 >[[alternative HTML version deleted]]
Does this help?> pdf(file="lag.pdf") > lag.plot(a) > lag.plot(b) > dev.off()After that you can open each page of the "lag.pdf" file with GIMP for further manipulation. It gives each plot on a different page, but no plot is replaced. 2006/6/13, Gad Abraham <g.abraham@ms.unimelb.edu.au>:> > Hi, > > I'm trying to plot several lag.plots on a page, however the second plot > replaces the first one (although it only takes up the upper half as it > should): > > par(mfrow=c(2,1)) > a<-sin(1:100) > b<-cos(1:100) > lag.plot(a) > lag.plot(b) > > What's the trick to this? > > I'm using R 2.2.1 (2005-12-20 r36812) on Ubuntu Linux. > > Thanks, > Gad > > > -- > Gad Abraham > Department of Mathematics and Statistics > University of Melbourne > Victoria 3010, Australia > email: g.abraham@ms.unimelb.edu.au > web: http://www.ms.unimelb.edu.au/~gabraham > <http://www.ms.unimelb.edu.au/%7Egabraham> > > ______________________________________________ > 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 >[[alternative HTML version deleted]]
On Tue, 13 Jun 2006, Gad Abraham wrote:> Hi, > > I'm trying to plot several lag.plots on a page, however the second plot > replaces the first one (although it only takes up the upper half as it > should): > > par(mfrow=c(2,1)) > a<-sin(1:100) > b<-cos(1:100) > lag.plot(a) > lag.plot(b) > > What's the trick to this?lag.plot itself calls par(mfrow). The trick is to get one call to do the plots you want: lag.plot(cbind(a,b)) -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595