On Wed, 10 Mar 2004, li xian wrote:
> I was trying to plot date time vs numeric values.
> Number of My date value are about 4000, It is continuous time series, 3
days, the interveal is 5 minutes, (2002-09-22 12:35:00 pm to 2002-09-22 3:40:00
pm) How can i plot it in R?
> I tried the regular way:
>
> formattime <- strptime(time, format= "%d-%b-%y %I:%M %p")
> plot(formattime, outNum)
> However the x axes doen't give me the hours by each three days,
instead
> it is "mon" "tue" etc. What should I do?
Read ?axis.POSIXct and its examples. The plot method has to guess how you
want the axis labelled, but by taking charge you can have your way.
--
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