Zoo functions - Plotting
One other point. If you only plot a single panel (there can be multiple time series in each panel) at a time then you can use mfrow. For example, this works: library(zoo) opar <- par(mfrow = c(2,2)) z <- zoo(cbind(a = 1:5, b = 2:6, c = 3:7, d = 4:8)) for(cn in colnames(z)) plot(z[, cn], main = cn, ylim = range(z)) par(opar)
On Feb 8, 2008 3:38 PM, Gabor Grothendieck <ggrothendieck at gmail.com> wrote:
If you want some on one page and others on another page issue two plot.zoo commands. plot(z[,1:2]) plot(z[,3:4]) Also look at xyplot.zoo which gives you the facilities of lattice xyplot with zoo objects. On Feb 8, 2008 3:15 PM, MAB <MichelBeck at sbcglobal.net> wrote:
MAB <MichelBeck <at> sbcglobal.Net> writes: Hi! When I plot the time-series in a zoo object using plot.zoo they are all drawn successively on the same graphics device. If there are more than 10 series this is not legible. With the "standard" plot function I could use the graphics parameter mfcol or mfrow to specify the number of plot screens/pannels per device. How can I do this with zoo? Thanks, Michel PS How do I open multiple on-screen graphics device at one time to plot a large number of time-series? Within a plotting loop an additional device should open each time the maximum number of plot screens/pannels specified per device is reached?
_______________________________________________ R-SIG-Finance at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-finance -- Subscriber-posting only. -- If you want to post, subscribe first.