Dear all; I have a set of 5 xyplots each with 8 panels and wish to place 2 on a letter-sized page. I tried using pdf() to specify paper size and plot size:>pdf(file = "fig1b.pdf", paper = "letter", onefile = FALSE, width = 5,height = 5, family="Helvetica")>par(mfrow=c(1,2))but it did not work. Any suggestions for placing mutiple xyplots to a page? TIA, Richard
The help page for print.trellis should give you some hints. Andy> -----Original Message----- > From: Yang, Richard [mailto:dyang at nrcan.gc.ca] > Sent: Friday, January 31, 2003 12:50 PM > To: R-Help (E-mail) > Subject: [R] Multiple xyplot on a page > > > Dear all; > > I have a set of 5 xyplots each with 8 panels and wish > to place 2 on > a letter-sized page. I tried using pdf() to specify paper > size and plot > size: > > >pdf(file = "fig1b.pdf", paper = "letter", onefile = FALSE, width = 5, > height = 5, > family="Helvetica") > >par(mfrow=c(1,2)) > > but it did not work. Any suggestions for placing mutiple > xyplots to a page? > > TIA, > > Richard > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > http://www.stat.math.ethz.ch/mailman/listinfo/r-help >------------------------------------------------------------------------------
See ?print.trellis On Friday 31 January 2003 11:50 am, Yang, Richard wrote:> Dear all; > > I have a set of 5 xyplots each with 8 panels and wish to place 2 on > a letter-sized page. I tried using pdf() to specify paper size and plot > > size: > >pdf(file = "fig1b.pdf", paper = "letter", onefile = FALSE, width = 5, > > height = 5, > family="Helvetica") > > >par(mfrow=c(1,2)) > > but it did not work. Any suggestions for placing mutiple xyplots to a page? > > TIA, > > Richard > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > http://www.stat.math.ethz.ch/mailman/listinfo/r-help
Many thanks to Renaud Lancelot, Andy Liaw and Deepayan Sarkar for their prompt response to my query. They all point me to the print.trellis help page which indeed solves my problem. Thank all, Richard My original question: Dear all; I have a set of 5 xyplots each with 8 panels and wish to place 2 on a letter-sized page. I tried using pdf() to specify paper size and plot size: >pdf(file = "fig1b.pdf", paper = "letter", onefile = FALSE, width = 5, height = 5, family="Helvetica") >par(mfrow=c(1,2)) but it did not work. Any suggestions for placing mutiple xyplots to a page? TIA, Richard