Skip to content

behavior of xaxt = "n" with POSIXct dates

2 messages · Jim_Garrett@bd.com, Brian Ripley

#
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?

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.

Jim Garrett
Becton Dickinson
Baltimore, Maryland, USA


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 21 Sep 2001 Jim_Garrett at bd.com wrote:

            
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.
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.'