Skip to content
Prev 22400 / 398502 Next

Formatting POSIXt values in plot axis labels

On Mon, Aug 05, 2002 at 02:23:07PM -0700, Ronnen Levinson wrote:
...
Yup.  In two steps...

1) plot, but without a labeled x-axis (x.stuff should have 
class "POSIXct"):

matplot(x.stuff, y.stuff, xaxt="n")


2) you can now use axis.POSIXct()
And a very nice function it is.  You can tell it where to put
the ticks (if you don't find the defaults appropriate), and what
format to display the dates.

Cheers

Jason
Message-ID: <20020806083215.A13205@camille.indigoindustrial.co.nz>
In-Reply-To: <3D4EECBB.89484E33@cornell.edu>; from RML27@cornell.edu on Mon, Aug 05, 2002 at 02:23:07PM -0700