[R] axis command and excel time format

Gabor Grothendieck ggrothendieck at gmail.com
Wed Nov 8 22:27:21 CET 2006


Please provide a complete self contained example.  I can't follow the
partial code below; however, its likely you are plotting one thing
and creating axes using another so there is no reason it should
come out right.

On 11/8/06, Carmen Meier <carmei3 at web.de> wrote:
> 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
>



More information about the R-help mailing list