[R] Plotting with date

Gabor Grothendieck ggrothendieck at gmail.com
Sat Mar 25 13:26:55 CET 2006


Make sure your x axis variable really is of class Date: class(x)

plot(Sys.Date() + 0:99, 1:100)

See ?str ?class ?as.Date, ?axis.Date and the help desk article in
R News 4/1 on dates for more info.

On 3/24/06, pierre clauss <pierreclauss at yahoo.fr> wrote:
> Hello !
>  I need your help for plotting with date in the x-axis.
>  I do not manage to plot temporal curves with the label of Date (01/01/1990, etc) in the x-axis.
>  Thanks a lot for your answer !
>  Pierre Clauss.
>
>
>
> ---------------------------------
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list