Re: [R] Plotting hourly time-series data loaded from file using plot.ts

2009-07-17 Thread Gabor Grothendieck
Need reproducible code and data to respond. As per the last line to every message in r-help, reduce the file to the smallest subset that exhibits the error and post it with self contained code that will read it in and reproduce the error message. On Fri, Jul 17, 2009 at 10:29 AM, Keith wrote: > Y

Re: [R] Plotting hourly time-series data loaded from file using plot.ts

2009-07-17 Thread Keith
Yep, it's my mistake while manipulating the data. Now it works fine except there is a warning message coming out: Warning message: In zoo(rval, ix) : some methods for “zoo” objects do not work if the index entries in ‘order.by’ are not unique I checked the faq and some other documents, it seems

Re: [R] Plotting hourly time-series data loaded from file using plot.ts

2009-07-16 Thread Gabor Grothendieck
By the way, note that read.zoo passes the ... arguments to read.table and so can use the same skip= and nrows= arguments that read.table uses. These can be used to read in a subset of the rows. On Thu, Jul 16, 2009 at 10:35 AM, Gabor Grothendieck wrote: > There is no such limitation.   There is l

Re: [R] Plotting hourly time-series data loaded from file using plot.ts

2009-07-16 Thread Gabor Grothendieck
There is no such limitation. There is likely a data problem with one or more records past the 280th one. Suggest you remove the first 280 and then divide the remaining in half and try each half and keep dividing that way until you have located the offending record or records. On Thu, Jul 16, 20

Re: [R] Plotting hourly time-series data loaded from file using plot.ts

2009-07-16 Thread Keith
Thanks Gabor, I tried a little bit, and your example works. However, it seems that the read.zoo has a limitation of records up to around 300 !? I took your suggestion and modified a little bit in order to read from the file which contains about 9000 records: dataTs <- read.zoo("filename.csv", hea

Re: [R] Plotting hourly time-series data loaded from file using plot.ts

2009-07-15 Thread Gabor Grothendieck
Try the zoo package: Lines <- "time[sec] , Factor1 , Factor2 00:00:00 01.01.2007 , 0. , 0.176083 01:00:00 01.01.2007 , 0. , 0.176417 11:00:00 10.06.2007 , 0. , 0.148250 12:00:00 10.06.2007 , NA , 0.147000 13:00:00 10.06.2007 , NA , 0.144417" library(zoo) library(chron) z <- read.zoo(t