Re: [R] drawing against a date

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu 13 Oct 2005 - 20:27:45 EST

On Thu, 13 Oct 2005, herodote@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@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

______________________________________________
R-help@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
Received on Thu Oct 13 20:42:21 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:50:04 EST