[R] xyplot with par

From: Afshartous, David <afshart_at_exchange.sba.miami.edu>
Date: Wed, 27 Jun 2007 11:52:36 -0400


All,
Is there are a simple way to plot multiple xyplots on the same page in the code below (it currently overwrites the first plot w/ the second).
I searched the archives and saw a similar question but the answer didn't seem to work.
thanks
dave

x1 = rnorm(10)
x2 = rnorm (10)
y1 = rnorm(10)
y2 = rnorm (10)
op = par(mfrow = c(2,1))

xyplot(y1 ~ x1)
xyplot(y2 ~ x2)

R-help_at_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 and provide commented, minimal, self-contained, reproducible code. Received on Wed 27 Jun 2007 - 16:11:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 27 Jun 2007 - 16:32:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.