[Rd] plot(1:10,c(1)$nothing) yields index plot (PR#482)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
13 Mar 2000 20:49:02 +0100


Thomas Lumley <thomas@biostat.washington.edu> writes:

> This turns out to be a bad idea, because we must be able to call plot(x)
> from other functions (with arbitrarily deep nesting), and it becomes very
> messy to trick plot() into handling the arguments correctly as they are
> passed from one function to another. 

Actually, S-plus has that problem, not R:

> f<-function(x,y)g(x,y)
> g<-function(x,y)missing(y)
> f(2)
[1] F

where R propagates missings just fine:

> f<-function(x,y)g(x,y)
> g<-function(x,y)missing(y)
> f(2)
[1] TRUE

but given the amount of ported code we have to deal with, we probably
have to be able to deal with NULLs being passed to signify absent
arguments. 

-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._