[R] plot.stepfun xlim

Stavros Macrakis macrakis at alum.mit.edu
Wed Dec 31 17:35:40 CET 2008

> On Tue, 30 Dec 2008, m.u.r. wrote:
>> according to the documentation, the xlim parameter should bound the
>> range of the function being plotted, and is returned as the extreme

On Wed, Dec 31, 2008 at 4:18 AM, Prof Brian Ripley
<ripley at stats.ox.ac.uk> replied:
> Wheere does it say that?

True, it doesn't say that. As you say, ?plot.stepfun says

> xlim,ylim: numeric(2) each; range of 'x' or 'y' values to use....

and ?plot.window says

    xlim, ylim: numeric vectors of length 2, giving the x and y
coordinates [sic] ranges.

...both of which are rather vague, not saying what the *effect* of
these "ranges" is.  Perhaps a more precise description would be:

    xlim, ylim: each is numeric(2) and defines the range of the x and
y scales. cf. xaxs; xpd.

More experienced users can perhaps come up with better language.


More information about the R-help mailing list