[R] arrows or graphics below axes?

Paul Murrell paul at stat.auckland.ac.nz
Thu Apr 19 22:57:35 CEST 2001


Hi


> Hi, All.  I'm trying to make an arrow pointing to a particular value
> on the x axis.
>
> So, this is pretty much what I want:
>
> 20     210     220     230     240     250     260 ...
>                 ^
>                 |
>                 |
>
> any ideas how to do this?  I tried a few things (like arrows), but
> they didn't want to plot outside of the actual "plot" area...

You can make use of the "xpd" parameter, which controls how much clipping
occurs;  see help(par).  For example, try ...

    plot(1:10)
    arrows(3, par("usr")[3] - .1*(diff(par("usr")[3:4])), 3, par("usr")[3],
xpd=T)

Paul


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list