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. Also, POSIX dates cannot be used on the y-axis? POSIXlt gives an error, and POSIXct is unformatted. Bruce Using X11 V4.2
Already correct in the current R-patched version (and you don't even mention the version of R you used). On Sat, 30 Aug 2003 mail@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. > > Also, POSIX dates cannot be used on the y-axis? > POSIXlt gives an error, and POSIXct is unformatted.R-bugs is not the place to ask questions. Ask on R-help, explaining exactly what you did, and then kind people may tell you what you did wrong.> Using X11 V4.2Yes, but which version of R? Please follow the advice in the FAQ, and use bug.report to prepare an adequate report. -- Brian D. Ripley, ripley@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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
mail@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") axis.POSIXct(2, as.POSIXct(c("1984-01-01","1984-01-02"))) Uwe Ligges> Bruce > > Using X11 V4.2 > > ______________________________________________ > R-devel@stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-devel