line plot with NA

Bill Simpson wsimpson@uwinnipeg.ca
Wed, 1 Apr 1998 12:34:46 -0600 (CST)


I have the following data:

intens<-c(28000,72000,120000,150000,180000,260000,310000) #Td

peakcb<-c(1.2,2.5,2.7,3.7,5.6,6.2,6.8) #presses/s
peakan<-c(0.5,3.7,5.1,5.8,7.4,NA,8.4)

(See why I am using NA? I can work around this problem by using
intensityan and intensitycb)

Now do a plot of peakan:
plot(intensity, peakan, pch=10,type="b") 

The plot skips the point (260000,NA), but no  line beyond x=260,000.

I think the behaviour should be to draw a line between (180000,7.4) and
(310000,8.4).

Bill Simpson

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._