This uses plot.zoo which in turn uses base graphics and accepts most of the base graphics graphical parameters. Note that in plot.zoo
that col
and lwd
are recycled. The screen
argument indicates which each series is in so to put it all in one panel replace the screen
argument with screen = 1
. Add main
and other arguments as desired. See ?plot.zoo
and first plot below.
library(zoo)
plot(zoo(cbind(a, b, c, d), year), screen = c(1, 1, 2, 2),
col = c("black", "yellow"), ylim = c(20, 100), lwd = c(6, 2))
Also note that in this case by adding just library(lattice)
and changing plot
to xyplot
we can get a lattice plot via xyplot.zoo
(second plot below).