[R] Plotting two 3-dimensional time series in a 3 x 2 plot - alternatives to par(mfrow())

Deepayan Sarkar deepayan.sarkar at gmail.com
Thu Feb 16 00:19:16 CET 2006


On 2/15/06, SÃ¸ren HÃ¸jsgaard <Soren.Hojsgaard at agrsci.dk> wrote:
> I am trying to plot two 3-dimensional time series in one window (such that
> there will be 3 rows and 2 columns). For zoo and ts objects the
> par(mfrow...) option does not work. I can get xyplot to make the plots, but
> data are on widely different scales in the three dimensions, and xyplot uses
> the same scale on all y-axis which means that in some dimensions the curves
> will be almost horizontal lines. Any suggestions?

You can instruct xyplot to choose separate y-limits for each panel by
specifying

xyplot(..., scales = list(y = "free"))

Deepayan
--
http://www.stat.wisc.edu/~deepayan/




More information about the R-help mailing list