[R] datetime on x-axis of plot
aa2007r at gmail.com
Thu Feb 28 23:52:00 CET 2008
see the zoo package. It has all the plotting for timeseries.
It has a nice Vignette too.
Also have a look at timeseries functions in Rmetrics.
----- Original Message -----
From: "joshv" <josh.verdone at yahoo.com>
To: <r-help at r-project.org>
Sent: Thursday, February 28, 2008 4:04 PM
Subject: [R] datetime on x-axis of plot
> Hello, I'm reading Time Series Analysis and its Applilcations with R
> and I have a question...
> I notice that in the book there are timeseries plots but without the
> being labeled with dates. They are just numbers 1,...50,...100, etc. How
> do I get the date to show up on the x-axis?
> Here is my dateframe:
>> head(myData, 5)
> 1 2008-01-30 08:30 7.00
> 2 2008-01-30 08:32 9.25
> 3 2008-01-30 08:34 5.50
> 4 2008-01-30 08:36 5.00
> 5 2008-01-30 08:38 -26.25
> (Also, I have searched using Rseek.org and not found anything to help me.
> Any searching advice would be greatly appreciated.)
> View this message in context:
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help