From p.dalgaard@biostat.ku.dk  Thu Mar 11 16:38:46 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 11 Mar 1999 17:38:46 +0100
Subject: log plots fail with NAs (PR#141)
In-Reply-To: oncley@ucar.edu's message of Thu, 11 Mar 1999 17:19:43 +0100
References: <199903111619.RAA11252@biostat.ku.dk>
Message-ID: <x23e3chtgp.fsf@blueberry.kubism.ku.dk>

oncley@ucar.edu writes:

> Shouldn't this work, but only plot 2 points?
> 
> > plot(c(1,NA,10),log="y")
> Error: missing value where logical needed

Yes. Inside xy.coords, we have

if ("y" %in% log && any(ii <- y <= 0))
                              ^^^^^^

make that y <= 0 & !is.na(y)
                 ^^^^^^^^^^^

(and ditto for x)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


log plots fail with NAs (PR#141)
Peter Dalgaard BSA