Re: [R] Duration labels on plot axes

From: Gabor Grothendieck <>
Date: Mon 01 May 2006 - 01:43:20 EST

The times class in chron will give hours and minutes. e.g.

plot(times(0:23/23), 0:23)

and you could modify chron:::axis.times for the others.

On 4/30/06, Duncan Murdoch <> wrote:
> I have a variable containing a measurement of a duration in seconds
> which I would like to use in a plot, with the axes labelled in a format
> like %H:%M:%S (or possibly %Hh%Mm) if the duration is more than an hour,
> or just %M:%S if more than a minute, or just decimal seconds if short
> enough. Is there a class with an axis.* method defined that has
> behaviour something like this?
> Duncan Murdoch
> ______________________________________________
> mailing list
> PLEASE do read the posting guide!
> mailing list PLEASE do read the posting guide! Received on Mon May 01 01:45:38 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 01 May 2006 - 10:09:55 EST.

Mailing list information is available at Please read the posting guide before posting to the list.