[R] Connecting points over missing observations in Lattice
a.sikk at ucl.ac.uk
Sat Oct 8 20:15:29 CEST 2011
I'd like to keep all observations for y1...
>> 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?
> Can't you just use:
> xyplot(y1 + y2 ~ t, data=size, subset = !is.na(y2) )
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
More information about the R-help