[R] drawing against a date

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Oct 13 12:27:45 CEST 2005


On Thu, 13 Oct 2005, herodote at oreka.com wrote:

> hy all
>
> I wish to draw a graph against a date, I have a set of date like this 
> DD/MM/YYYY, corresponding to it a set of integer , i wish to draw on x 
> side the dates (the space between the dates have to be constant, not 
> based on the time between 2 dates but on the number of dates) and on y 
> side the integers.
>
> Do i have to make a tricky function under R ?
>
> I've search the help for graphical functions but my poor english seems 
> to make me missing the solution...

First convert your dates to R's date format by as.Date, then see ?plot.Date.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list