[R] plotting time series

From: eugen pircalabelu <eugen_pircalabelu_at_yahoo.com>
Date: Mon, 28 Apr 2008 12:14:12 -0700 (PDT)

Hi List,

I have the following time series and i want to be able to plot it while having the x-axis running from 1998 to 2006 but in a bi-annual format  

So here is my example:

x<-sample (10:100, 17)
x<-ts(x, start=c(1998,1), frequency=2)

When I plot the ts it goes from 1998 to 2006 by 2years, when in fact i want it to go from 1998 to 2006 with the following form:1998 may, 1998 nov, 1999 may, 1999 nov, 2000 may, 2000 nov...... 2005 may, 2005 nov, 2006 may. I have searched nabble for something similar, saw ?plot() but this problem is still a mystery to me .

Thank you and have a great day ahead!          

[[elided Yahoo spam]]

        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 28 Apr 2008 - 19:17:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 Apr 2008 - 21:31:04 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive