From rossini@math.sc.edu  Wed Apr  1 21:29:08 1998
From: rossini@math.sc.edu (Anthony Rossini)
Date: 01 Apr 1998 15:29:08 -0500
Subject: line plot with NA
In-Reply-To: Bill Simpson's message of "Wed, 1 Apr 1998 12:34:46 -0600 (CST)"
References: <Pine.OSF.3.95.980401122715.17690A-100000@io.uwinnipeg.ca>
Message-ID: <wncn2e58ewb.fsf@fhat.stat.sc.edu>


>>>>> "Bill" == Bill Simpson <wsimpson@uwinnipeg.ca> writes:

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

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

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

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

I respectfully disagree.  If the data were in fact longitudinal data,
with missing observations, one valid scenario would be to halt, which
is what is happening.  

Maybe a na.omit flag would be appropriate for plot?  (is there one?
I'm just speculating, not having easy access to R or Splus today).

best,
-tony

--
Anthony Rossini
Manifold Graphics / Epimetrics
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


line plot with NA
Anthony Rossini