Jim wrote:
> Have a look at par(xaxs="i"), which you can pass to the plot function
> as well.

Hi everybody,
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
first example.
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
plot.stepfun) ?

Best regards,
        Sebastian

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to