[R] zoo object won't plot

stephen sefick ssefick at gmail.com
Fri Mar 7 19:53:35 CET 2008


DateTime	RM61
11/30/2006 12:31	NA
11/30/2006 12:46	NA
11/30/2006 13:01	2646784125
11/30/2006 13:16	NA
11/30/2006 13:31	NA
11/30/2006 13:46	NA
11/30/2006 14:01	2666435177
11/30/2006 14:16	NA
11/30/2006 14:31	NA
11/30/2006 14:46	NA
11/30/2006 15:01	2653041914
11/30/2006 15:16	NA
11/30/2006 15:31	NA
11/30/2006 15:46	NA
11/30/2006 16:01	2693126189
11/30/2006 16:16	NA
11/30/2006 16:31	NA
11/30/2006 16:46	NA
11/30/2006 17:01	2658366411
11/30/2006 17:16	NA
11/30/2006 17:31	NA
11/30/2006 17:46	NA
11/30/2006 18:01	2705885426
11/30/2006 18:16	NA
11/30/2006 18:31	NA
11/30/2006 18:46	NA
11/30/2006 19:01	2707635675
11/30/2006 19:16	NA
11/30/2006 19:31	NA
11/30/2006 19:46	NA
11/30/2006 20:01	2721482049
11/30/2006 20:16	NA
11/30/2006 20:31	NA
11/30/2006 20:46	NA
11/30/2006 21:01	2712886423
11/30/2006 21:16	NA
11/30/2006 21:31	NA
11/30/2006 21:46	NA
11/30/2006 22:01	2720426598
11/30/2006 22:16	NA
11/30/2006 22:31	NA
11/30/2006 22:46	NA
11/30/2006 23:01	2724468912

#read data in as zoo object
# chron
library(chron)
fmt.chron <- function(x) {
   chron(sub(" .*", "", x), gsub(".* (.*)", "\\1:00", x))
}
z1 <- read.zoo(textConnection(Lines), sep = ",", header = TRUE, FUN = fmt.chron)

the above data will not plot

#rplot
plot(z1)


-- 
Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis



More information about the R-help mailing list