[R] strange: yaxis inversion with zoo not possible?

marcg mdgi at gmx.ch
Thu Oct 11 10:33:17 CEST 2007


hej there

I want to invert the yaxis as follows:

x<-rnorm(1:50)
plot(x^2, type="h", ylim=c(0,10))
plot(x^2, type="h", ylim=c(10,0))

then doing the following it won't work - kind of strange isn't it?

x.zoo<-zoo(x^2)
plot(x.zoo, type="h", ylim=c(10,0))
plot(x.zoo, type="h", ylim=c(0,10))

how can I invert the axis with zoo objects?

Marc
--



More information about the R-help mailing list