[R-sig-eco] add lines outside of the plot region

Jari Oksanen jari.oksanen at oulu.fi
Thu Dec 31 18:07:45 CET 2009


On 30/12/09 23:36 PM, "Jason Van Tassell"
<van-tassell.1 at buckeyemail.osu.edu> wrote:

> Hello,
> I am trying to add lines outside of the plot region, as one would mtext
> command.  Is this possible?  I have not found an example and have failed with
> every attempt.  Any suggestions would be greatly appreciated...thanks
> 
Jason,

Is it sufficient to draw lines with graphical par()ameter xpd = TRUE? For
instance,

plot(0:1, 0:1, type="n")
segments(-1, -2, 2, 2, col=2, xpd=TRUE)
lines(c(-0.1, 1.1, 1.1, -0.1, -0.1), c(-0.1, -0.1, 1.1, 1.1, -0.1), xpd=T)
abline(0, 1, xpd=TRUE)

Cheers, Jari Oksanen



More information about the R-sig-ecology mailing list