Skip to content
Prev 255672 / 398506 Next

R-project: plot 2 zoo objects (price series) that have some date mis-matches

On Sun, Apr 3, 2011 at 1:57 PM, algotr8der <algotr8der at gmail.com> wrote:
Try this:

plot(na.approx(cbind(z1, z2)), screen = 1)

and in ?plot.zoo see the multivariate plotting example.


where z1 and z2 are two zoo series.  Omit screen = 1 if you want them
in different panels.