[EMAIL PROTECTED] 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")
 axis.POSIXct(2, as.POSIXct(c("1984-01-01","1984-01-02")))

Uwe Ligges


Bruce

Using X11 V4.2

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel

Reply via email to