Re: [R] Connecting lines across missing data points, xyplot

From: Jim Lemon <>
Date: Fri, 27 Jun 2008 22:14:57 +1000

David Afshartous <> wrote:

> > All,
> >
> > I have data across 5 time points that I am graphing via xyplot, along with
> > error bars. For one of the variables I have missing data for two of the
> > time points. The code below is okay but I can't seem to get the lines to
> > connect across the missing time points. Does anyone now how to rectify
> > this?
Hi David,
If you just have one or a few plots to do, I would suggest manually inserting the lines with "segments" or "lines", and changing the line type so that it is obvious that these line represent something different from the initial ones.

Jim mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 27 Jun 2008 - 12:15:21 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 Fri 27 Jun 2008 - 14:31:35 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive