Plotting with date

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Plotting with date

pierre clauss
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]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Plotting with date

Gabor Grothendieck
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 <[hidden email]> 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]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Plotting with date

pierre clauss
thanks a lot ! it runs well now
  Pierre Clauss

Gabor Grothendieck <[hidden email]> a écrit :
  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
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]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

               
---------------------------------

        [[alternative HTML version deleted]]


______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html