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

From: Carl Witthoft <>
Date: Sat, 28 Jun 2008 12:30:27 -0400

Just had to comment that I thought this question was unintentionally funny, seeing as many of us have gone thru a lot of pain to force Excel NOT to join lines across NA-type points in our data.

Back to the subject: if you use, just be careful to remove the corresponding values in the x-data as well as the y-data :-) . Probably mucking with something like
>if (y[j]=NA) y[j]<-approx({local x and y data fit}) mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat 28 Jun 2008 - 16:35:01 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 Sat 28 Jun 2008 - 17:30:54 GMT.

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

list of date sections of archive