Skip to content

Plotting a zoo object: lines and barplot

2 messages · Vikram Bahure, Gabor Grothendieck

#
In Mon, Nov 28, 2011 at 3:39 AM, Vikram Bahure
<economics.vikram at gmail.com> wrote:
Try this:

library(zoo)

# create test data
set.seed(123)
z <- zoo(cbind(a = 1:10, b = 10:1, c = rnorm(10, 5, 3)))

plot(z, screen = 1, type = c("l", "l", "h"))