[R] stricter use of xlim in plot.stepfun
Sebastian.Wastl.Meyer at campus.lmu.de
Tue May 26 15:13:43 CEST 2009
> Have a look at par(xaxs="i"), which you can pass to the plot function
> as well.
Thank you very much for your suggestion, Jim. I did not think of that
graphical parameter "xaxs". It would really be a workaround for my
Unfortunately, it does not solve the second situation, where I would
like to add the step function to an existing plot within a specified
region. Internally, 'xlim' will always be expanded by 'dr'
(=diff(xlim)) units to the left and to the right.
Perhaps one could add an argument to the plot.stepfun function, with
which one can specify this 'dr' variable (see the internals of
More information about the R-help