[R] axis command and excel time format

Carmen Meier
Wed, 08 Nov 2006 20:52:22 -0000

Gabor Grothendieck schrieb:
> Your code plots x which has nothing to do with xt.
>
The same result if you change xt to x: 02:25 at the origin nothing else
- I do not know why
#---------- your suggestion --------
 mn <- times(min_time)
 mx <- times(max_time)
 n <- 12

 t <- times(seq(mn, mx, length = n))

 t <- times(unique(sub("..$", "00", t)))

 axis(1, x, sub(":00$", "", x)) # works only with plot data
before



Regards Carmen