> From: joshv
> Hello, I'm reading Time Series Analysis and its Applilcations with R Examples
> and I have a question...
>
> I notice that in the book there are timeseries plots but without the x-axis
> being labeled with dates. They are just numbers 1,...50,...100, etc. How
> do I get the date
Is the date part of your data a POSIXct object?
If so,
plot( myData[,1], myData[,2] )
will label the x axis with dates.
See the help pages for date-time class objects:
?POSIXt
(POSIXt includes both POSIXct and POSIXlt; I tend to prefer POSIXct
and find it the easier of the two to work w
4 PM
Subject: [R] datetime on x-axis of plot
>
> Hello, I'm reading Time Series Analysis and its Applilcations with R
> Examples
> and I have a question...
>
> I notice that in the book there are timeseries plots but without the
> x-axis
> being labeled with date
Hello, I'm reading Time Series Analysis and its Applilcations with R Examples
and I have a question...
I notice that in the book there are timeseries plots but without the x-axis
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?
4 matches
Mail list logo