[R] pairs and mfrow
Greg Snow
Greg.Snow at imail.org
Mon Sep 27 18:31:56 CEST 2010
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.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Mike Harwood
> Sent: Monday, September 27, 2010 6:51 AM
> To: r-help at 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 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.
More information about the R-help
mailing list