[Rd] symbols: xlim and ylim cannot be specified (PR#639)

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Tue, 22 Aug 2000 09:45:48 +0200 (MET DST)


On Tue, 22 Aug 2000 maechler@stat.math.ethz.ch wrote:

> >>>>> "Uwe" == Uwe Ligges <ligges@statistik.uni-dortmund.de> writes:
> 
>     Uwe> stahel@stat.math.ethz.ch wrote:
>     >> 
>     >> symbols(iris[,1],iris[,2],rectangles=as.matrix(iris[,3:4]),inches=0.3,
>     >>         ylim=c(1,5))
>     >> Error in plot.default(NA, NA, type = "n", ylim = ylim, xlim = xlim, xlab = xlab,  :
>     >> formal argument "ylim" matched by multiple actual arguments
>     >> 
>     >> Since plot is called inside symbols, with specified xlim and ylim,
>     >> any specification through  ,...  hurts this call.
> yes,
> and Uwe's fix cures this problem.
>     [Uwe, you should have CC'ed  R-bugs, not (only) R-devel .. that's why I
>      copy it again now].
> 
> and I have committed it for the release patches (!! i.e. "1.1.1 patched")

Why is using NULL preferable here?  The standard paradigm as I understand
it is


         ylab = "", xlim, ylim, ...)
...
            if(missing(xlim)) {
                xlim <- range(x, na.rm = TRUE)
                xlim <- xlim + c(-1, 1) * (0.1 * diff(xlim))
            }

In S there is a problem with passing down missingness, but not in R.

Brian

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


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