Skip to content
Back to formatted view

Raw Message

Message-ID: <22855560.post@talk.nabble.com>
Date: 2009-04-02T19:41:02Z
From: Scott Tennican
Subject: In plot.zoo the screens and ylim arguments seem incompatible

I am plotting multiple graphs per window with multiple series on each graph.
When I try to set ylim I get the error below:
Error in ylim[[idx]] : subscript out of bounds

Am I incorrectly specifying my ylim list or is this a bug?

Here is a simple reproduction:
z <- zoo(cbind(a = 1:10, b = 11:20, c = 21:30))
# This works
plot(z, ylim = list(a = c(1,40)))
# This works
plot(z, screens=c(1,2,2))
# This produces the error
plot(z, screens=c(1,2,2), ylim = list(a = c(1,40)))

thanks, Scott
-- 
View this message in context: http://www.nabble.com/In-plot.zoo-the-screens-and-ylim-arguments-seem-incompatible-tp22855560p22855560.html
Sent from the R help mailing list archive at Nabble.com.