Søren Højsgaard
2006-Feb-15 22:19 UTC
[R] Plotting two 3-dimensional time series in a 3 x 2 plot - alternatives to par(mfrow())
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? Thanks in advance S??ren
Deepayan Sarkar
2006-Feb-15 23:19 UTC
[R] Plotting two 3-dimensional time series in a 3 x 2 plot - alternatives to par(mfrow())
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/
Gabor Grothendieck
2006-Feb-16 01:30 UTC
[R] Plotting two 3-dimensional time series in a 3 x 2 plot - alternatives to par(mfrow())
plot.zoo takes the nc= argument which specifies the number of columns it uses, e.g. library(zoo) library(tseries) data(USeconomic) z <- as.zoo(USeconomic) plot(z, nc = 2) 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? > Thanks in advance > S??ren > > ______________________________________________ > 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 >
Seemingly Similar Threads
- Using unsplit - unsplit does not seem to reverse the effect of split
- lattice/xyplot: plotting 4 variables in two panels - can this be done?
- Fwd: How to sample from a linear mixed model
- Calling substitute(expr, list(a=1)) when expr <- expression(a+b+c)
- Drawing a graph with vertices and edges using tcl/tk