Re: [R] Changing x-axis when dealing with time

2011-05-16 Thread Ken
Ken bu.edu> writes: > # create "chron" time vector > library(chron) > excel.dates <- seq(40179.0 + 1/6, 40180.0 + 1/6, 1/6) > orig <- chron("12/30/1899") > date.time <- orig + excel.dates; > time.only <- substr(date, 11, 18) Found one error in my script above. Correction: time.only <- substr(

Re: [R] Changing x-axis when dealing with time

2011-05-16 Thread Ken
Pablo Rosado lbl.gov> writes: > > Hi, > > I am plotting data in which the x values are a timestamp. I am trying to > change the x-ticks so they will be in specified hours of the day, but it > always start from hour 4 of the day. And I need it to start from the > beginning of the axis (at x=0)