In article <80b45a8c0910192051nd558023p9b76566464fc3...@mail.gmail.com>,
remkoduur...@gmail.com says...
> I think it is a bug. Apparently plot.POSIXct calls axis.POSIXct for
> both y (correct) and x (incorrect) axes:
Thanks. Reported as bug #14016.
--
Karl Ove Hufthammer
__
I think it is a bug. Apparently plot.POSIXct calls axis.POSIXct for
both y (correct) and x (incorrect) axes:
set.seed(1)
x=seq(1,1e8,length=100)+round(runif(100)*1e8)
y=as.POSIXct(x,origin="2001-01-01")
plot(y, axes=FALSE)
axis.POSIXct(2, y)
axis.POSIXct(1,y) # is what it does
axis(1, col="red")
I believe I have found a bug (or at least a misfeature) in plot.POSIXct.
See the following example code.
set.seed(1)
x=seq(1,1e8,length=100)+round(runif(100)*1e8)
y=as.POSIXct(x,origin="2001-01-01")
plot(y)
This plots some random (date)times against their indices. The y axis
correctly shows app
3 matches
Mail list logo