[R] Duration labels on plot axes

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Mon 01 May 2006 - 00:34:12 EST

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

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 Mon May 01 00:41:11 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 - 02:09:54 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.