Skip to content
Prev 176039 / 398503 Next

In plot.zoo the screens and ylim arguments seem incompatible

Hi Gabor,

It seems that the problem depends on operating system.
I have recently switched from using R on Windows Vista to using it on Ubuntu
Linux.
I had already tried your two suggestions on Ubuntu and they produce the same
error:
    Error in ylim[[idx]] : subscript out of bounds
According to debug(), the error occurs in the second tapply in the
definition of "ranges".
I traced it up to the Internal lapply and couldn't see any reason why the
error should occur.

On the other hand, your suggestions work on Windows.
Also, the broken command still doesn't work on Windows.
But, it produces an entirely different error message:
    Error in plot.window(...) : need finite 'ylim' values

thanks, Scott
Gabor Grothendieck wrote: