[R] behavior of xaxt = "n" with POSIXct dates

Prof Brian D Ripley ripley at stats.ox.ac.uk
Sat Sep 22 13:50:14 CEST 2001


On Fri, 21 Sep 2001 Jim_Garrett at bd.com wrote:

>
> Prof. Ripley has provided very helpful information regarding X-axis
> labeling with POSIXct-class dates.  Now I've run into another bit of
> problematic behavior.  I'm running R 1.3.0 on Windows NT 4.0.
>
> When I create a plot with the optional argument xaxt = "n", and the X axis
> is generated from dates of class POSIXct,  the X axis is plotted.
> Obviously, I'd like to prevent the X axis from being plotted so that I can
> create a tailored X axis for plotting.
>
> I have a work-around for the moment:  plot without any axes, then add each
> axis with a separate "axis" statement.  But perhaps there is a way to get
> the desired behavior in the first place?

The author could have anticipated that you might want to do it, I guess!
I'll write a more sophisticated version of plot and axis for POSIXt classes
for 1.4.0: what is there was intended to be a quick hack to encourage
migration from chron classes.

> Incidentally, I can't check documentation for R 1.3.1 because, due to my
> company's slow and extremely conservative response to the Nimda worm, I
> can't access the web (I now realize how much I use it!).  Apologies in
> advance if the latest R version has already handled this.

I suppose you can't upgrade R either, then?  We would encourage people to
go to 1.3.1: it had a lot of bug fixes, and we do not anticipate any
further releases before 1.4.0 which `is not yet scheduled, but is likely to
be around the end of 2001.'


-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list