[R] Zoo plotting behavior

From: stephen sefick <ssefick_at_gmail.com>
Date: Wed, 02 Jul 2008 09:25:11 -0400

I have a matrix with data that runs from 1/1/06 00:01:00-1/31/08 23:46:00. I have read in the data with this

fmt.chron <- function(x) {

   chron(sub(" .*", "", x), gsub(".* (.*)", "\\1:00", x)) }

x <- read.zoo(file.choose(), sep=",", header=T, FUN=fmt.chron)

plotted with this
plot(x[,(seq(3, by=9, length.out=12))], xlim=c(chron("9/01/2006", "00:01:00"), chron("1/31/2007", "12:46:00")))

and I was excited to be able to plot subsets with date and it worked it worked fine until I put in the above and the axis displays 9/09, but still seems to plot the data when I change the xlim. Thank you very much

I can provide data - I am doing a dry run to see if there is something glaringly obvious that I am missing

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

	[[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 02 Jul 2008 - 13:29:00 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 Wed 02 Jul 2008 - 14:31:04 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