[R] Connecting lines across missing data points, xyplot

Carl Witthoft carl at witthoft.com
Sat Jun 28 18:30:27 CEST 2008

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})

More information about the R-help mailing list