[R] Plotting POSIXct data: Is this error message for real?
Patrick Connolly
p.connolly at hortresearch.co.nz
Mon Feb 17 23:35:04 CET 2003
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 1
minor 6.2
year 2003
month 01
day 10
language R
>
> x <- paste(1:28, "/02/03", sep = "")
> xct <- as.POSIXct(strptime(x, "%d/%m/%y"))
> count <- rpois(28, 5)
> plot(xct, count, ylab = "something")
Warning message:
parameter "ylab" couldn't be set in high-level plot() function
Even though "ylab" can't be set, the resulting plot does succeed.
Compare with:
> plot(as.numeric(xct), count, ylab = "something")
No error (but of course, the x axis isn't much use).
Should the warning really be given?
best
--
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it. ---Steven Wright
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
More information about the R-help
mailing list