Re: [R] two labels on x-axis (year and month)

2007-08-23 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: > hej > > i'm plotting time-series and label the x-axis as follows: > > r <- as.POSIXct(round(range(p1$time), "month")) > > to define the time range for labeling the xaxis > > plot(p1$time,p1$ p1, type="l", xaxt="n") > > plots p1 against time > > axis.POSIXct(1, at=

[R] two labels on x-axis (year and month)

2007-08-22 Thread mgilgen
hej i'm plotting time-series and label the x-axis as follows: r <- as.POSIXct(round(range(p1$time), "month")) to define the time range for labeling the xaxis plot(p1$time,p1$ p1, type="l", xaxt="n") plots p1 against time axis.POSIXct(1, at=seq(r[1], r[2], by="month"), format="%m") labels the