[Rd] Re: plot.function documentation (was ".. too large alpha ..")

Duncan Murdoch murdoch@stats.uwo.ca
Fri, 25 Aug 2000 14:10:18 -0400


On Fri, 25 Aug 2000 18:57:50 +0200 (CEST), you wrote in message
<14758.42382.735308.898057@gargle.gargle.HOWL>:

>    Duncan> 2.  If xlim is specified and from and to aren't, the from and to
>    Duncan> values should default to xlim[1] and xlim[2], not 0 and 1.  
>
>good idea,
>and easy to implement...  
>I would have it as
>
>  \item{xlim}{numeric of length 2; if specified, it replaces \code{from}
>              and \code{to}.}
>
>(and not give a warning if someone uses  xlim  *and* e.g. `from').

Hmmm, I can see that someone might want both, and have them take
inconsistent values.  Then from and to should control the range of
values graphed, and xlim should control the plotting box.

For example,

  plot(function(x) x^2, xlim=c(-1,1), from=0, to=1)

should do what it does now, i.e. have the x-axis run from -1 to 1, but
only positive x values are graphed.

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