[R-sig-Geo] Plotting short time series
Tobias Vetter
vetter at pik-potsdam.de
Tue Jul 13 09:43:37 CEST 2010
Look
?axis.POSIXct
Greetings Tobias
> Dear all,
> I 'm plotting flow time series, my time series is very short, and the length of
> the time series is less than a week. When I plot it, it shows the x-axis in days
> [Wed thu fri sat sun mon Tue], and I want it to show the x-axis in months.
> For example one of my data file starts on May 7, 2007 at 8:00 am and ends on May
> 12, 2007 at 23:45, the data time-step is 15 minutes. BTW, when I increase the
> length of the time series to seven days or more, it shows the x-axis in months
> .Even I have similar time series of 3-days length, and I want it to shows in
> months . Here is the code:
> storm_measured <- read.csv ("storm_1_measured.csv")
> ts_measured<-as.POSIXct(strptime(storm_measured[,1],format="%d-%m-%y %H:%M"))
> plot(ts_measured, storm_measured[,2],ylab="Discharge [m^3/s]",type ="p")
>
> What can I do to have x-axis shown in months instead of days [Wed through Tue],
> or is there is a better way to do it?
>
> Thanks,
> Ageel
>
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
More information about the R-sig-Geo
mailing list