I have a time series of about 1500 measurements. There are sporadic data gaps. I would like to plot the time series with type "line". I only want a line to connect the periods with data; I don't want a line to connect the points across a data gap. Is there a function or recommended method to deal with this?
For example there are 2000 days days 1:1000 each have one measurement of temperature days 1001: 1199 have no data days 1200:2000 each have one measurement of temperature I want the plot to connect points 1:1000 with a line, and to connect points 1200: 2000 with a different line. I don't want a line to connect points 1001:1200. I searched the help archives and google but couldn't find anything. Any advice? JK [[alternative HTML version deleted]] ______________________________________________ R-help@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.