Petr PIKAL <petr.pikal <at> precheza.cz> writes: > > I just encountered a strange behaviour trying to plot lattice xyplot with > dates on x axis > > xyplot(rnorm(10)~seq(as.Date("2000/1/1"), by="month", > length=10)|sample(1:2, 10, replace=T)) > > Warning message: > is.na() applied to non-(list or vector) in: is.na(x) > > and no points were plotted.
Your example and my attempt to understand what it means works for me: R 2.6.0, Windows 2000 english, german date settings. Could it be a problem with cz date settings? df = data.frame(val=rnorm(10), dt=seq(as.Date("2000/1/1"), by="month", length=10), group=sample(1:2, 10, replace=T)) df xyplot(val~dt|group,data=df) Dieter ______________________________________________ R-help@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.