[R] plot POSIXct format data

From: Jingru Dai <jingru.dai_at_sci.monash.edu.au>
Date: Tue, 15 Jan 2008 10:37:03 +1100


Hi, everyone

I've been trying to make a scatter plot of POSIXct format data to see the difference between two start time.
Like X:
[1] "1995-05-26 19:00:00" "1995-05-27 01:00:00" "1995-05-27 07:00:00"
[4] "1995-06-29 01:00:00" "1995-06-29 07:00:00" "1995-06-30 13:00:00"
[7] "1995-06-30 19:00:00" "1995-07-01 01:00:00" "1995-07-01 07:00:00"
......
Y:
[1] "1995-05-26 19:00:00" "1995-05-27 01:00:00" "1995-05-27 07:00:00"
[4] "1995-06-29 01:00:00" "1995-06-29 07:00:00" "1995-06-30 13:00:00"
[7] "1995-06-30 19:00:00" "1995-07-01 01:00:00" "1995-07-01 07:00:00"
.......

But it seems plot(x,y) doesn't work, y have to be numeric format. Is there any special command for that or I should change the format of the data?
Thanks

Jingru Dai



School of Mathematical Sciences
Rm 454, Building 28
Monash University, 3800
Victoria, Australia

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 14 Jan 2008 - 23:40:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 Jan 2008 - 01:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive