[R] zoo plot: yearly marks on X-Axis

stvienna wiener stvienna at gmail.com
Sun Jul 26 02:36:57 CEST 2009


Hi all,

I am plotting a financial time series, but I need a more detailed X-Axis.

Example:
x <- zoo(rnorm(1:6000), as.Date("1992-11-11")+c(1:6000))
plot(x)

The X-Axis is labeled "1995", "2000" and "2005".
I would need either "1995", "1997", etc. or maybe yearly


I used google first, then look at "?plot.zoo" but could't get it working.


Regards,
Steve




More information about the R-help mailing list