On Oct 8, 2011, at 4:59 AM, Allan Sikk wrote:

Hello,

I'm trying to plot connected time series of two variables in a lattice plot:
xyplot(y1 + y2 ~ t,  data=size, type="b")

y2 has missing data for some of the observations and some points are
therefore not connected. It would make theoretical sense to connect the points - is there a way of doing that? (Without filling the obserations
using package 'zoo').

Can't you just use:

  xyplot(y1 + y2 ~ t, data=size,  subset = !is.na(y2) )


Thanks,
Allan

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
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.

Reply via email to