[R] pairs and mfrow

2010-09-27 Thread Mike Harwood
Is there an alternative to par(mfrow=c(2,1)) to get stacked scatterplot
matrixes generated with pairs?

I am using version 2.11.1 on Windows XP.  The logic I am using follows, and
the second pairs plot replaces the first plot in the current graphics
device, which is not what I expected (or desired).

par(mfrow=c(2,1))
pairs(b2007, main=6/2000 - 12/2006)
pairs(a2007, main=1/2007 - 06/2009)

Thanks in advance!

Mike

[[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.


Re: [R] pairs and mfrow

2010-09-27 Thread Greg Snow
Why do you want 2 pairs plots on the same device?  There may be a better 
approach to what you want to do.

You could use splom from the lattice package along with the print.trellis 
function to put 2 on the same page.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111


 -Original Message-
 From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
 project.org] On Behalf Of Mike Harwood
 Sent: Monday, September 27, 2010 6:51 AM
 To: r-help@r-project.org
 Subject: [R] pairs and mfrow
 
 Is there an alternative to par(mfrow=c(2,1)) to get stacked scatterplot
 matrixes generated with pairs?
 
 I am using version 2.11.1 on Windows XP.  The logic I am using follows,
 and
 the second pairs plot replaces the first plot in the current graphics
 device, which is not what I expected (or desired).
 
 par(mfrow=c(2,1))
 pairs(b2007, main=6/2000 - 12/2006)
 pairs(a2007, main=1/2007 - 06/2009)
 
 Thanks in advance!
 
 Mike
 
   [[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.

__
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.