[R] interrupted plots

mlennert@club.worldonline.be mlennert at club.worldonline.be
Tue Feb 20 15:05:17 CET 2001


Hello,

I'm trying to plot simple data containing numbers/year.
I use plot(numbers~year, type="l"), but the problem is that there is no data 
for several years. S I would like the line to be interrupted for the period 
without data, and then continue afterwards. How can I do this ?

Also, I've been using par(new=TRUE) to put two curves (same years, different 
numbers) on the same plot. Is there a way to do this differently, i.e. easier, 
for example directly in the plot command ?

Moritz

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list