Re: [R] plot continuous data vs clock time

2011-01-17 Thread Bill.Venables
plot(y~x, type="p", xlim = x[c(2,4)]) ? -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of wangxipei Sent: Tuesday, 18 January 2011 1:27 PM To: r-help Subject: [R] plot continuous data vs clock time Dear R users, I have

[R] plot continuous data vs clock time

2011-01-17 Thread wangxipei
Dear R users, I have a question about ploting clock time, the example is as below: y<-seq(from=1, to=30, by=5) x<-c("0:01","1:20", "8:40", "9:25", "15:30", "21:23") x<-as.POSIXct(strptime(paste(x),"%H:%M")) plot(y~x, type="p") I got the plot, but if I want to plot the x range fr