Re: [R] Strange behavior with time-series x-axis

2007-11-01 Thread Felix Andrews
Allen, I can reproduce the problems you described, but I can't find where the problem is (in axis.POSIXct). Anyway, here is an alternative I wrote a while ago: # for base graphics timeAxis <- function(side, at=NULL, labels=TRUE, ..., tz="GMT") { range <- par("usr")[if (side%%2) 1:2 else 3

[R] Strange behavior with time-series x-axis

2007-10-25 Thread Allen McIntosh
I recently called plot(x,y) where x was an array of POSIXct timestamps, and was pleasantly surprised that it produced a nice plot right out of the box: z <- as.POSIXct(c("2006-10-26 08:00:00 EDT","2007-10-25 12:00:00 EDT")) x <- seq(z[1],z[2],len=100) y <- 1:100 plot(x,y,type="l") The X axis ha