Re: [R] xyplot with par

From: <deepayan.sarkar_at_gmail.com>
Date: Wed, 27 Jun 2007 09:06:50 -0700

On 6/27/07, Afshartous, David <afshart_at_exchange.sba.miami.edu> wrote:
> 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)

See help(print.trellis), which has examples.

-Deepayan



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:17:44 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 - 17:32:24 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.