From murdoch@stats.uwo.ca  Fri Aug 25 19:10:18 2000
From: murdoch@stats.uwo.ca (Duncan Murdoch)
Date: Fri, 25 Aug 2000 14:10:18 -0400
Subject: [Rd] Re: plot.function documentation (was ".. too large alpha ..")
In-Reply-To: <14758.42382.735308.898057@gargle.gargle.HOWL>
References: <200008251320.PAA05152@pubhealth.ku.dk> <39a683e6.3864125@fisher.stats.uwo.ca> <14758.42382.735308.898057@gargle.gargle.HOWL>
Message-ID: <39a6b55a.2956059@fisher.stats.uwo.ca>

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


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