[Rd] Bug in plot() with POSIX dates (PR#4024)
ligges at statistik.uni-dortmund.de
Sun Aug 31 16:15:50 MEST 2003
mail at fwr.on.ca wrote:
> When I do this (highly simplified example):
> plot(as.POSIXct(c("1984-01-01","1984-01-02")), c(1,2), col=2)
> I get a partially red (col=2) x-axis between and including the first and last tick marks.
> Otherwise ok. Only happens with POSIXct or POSIXlt dates.
This one has already been fixed in r-patched and r-devel (to be R-1.8.0).
> Also, POSIX dates cannot be used on the y-axis?
> POSIXlt gives an error, and POSIXct is unformatted.
[That's a question for r-help, not appropriate for a bug report.]
?plot.POSIXct points you to a function axis.POSIXct() to be used as in:
plot(c(1,2), as.POSIXct(c("1984-01-01","1984-01-02")), yaxt="n")
> Using X11 V4.2
> R-devel at stat.math.ethz.ch mailing list
More information about the R-devel