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

From: Carl Witthoft <carl_at_witthoft.com>
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 is.na(), 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})



R-help_at_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. 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive