Controlling the extent of ablines on plot
On Tue, May 3, 2011 at 10:40 AM, Joshua Wiley <jwiley.psych at gmail.com> wrote:
The issue is the plotting region is slightly padded. ?The easiest option, I think, would be to clip() it. ?I have a general sense that one of the par() options would let you adjust the padding to 0, but I could just be imagining that (anyone else??).
Not loving it, but this is sort of what I meant... plot(0:5, seq(0, 10, 2), axes=FALSE, xaxs = "i", yaxs = "i") axis(1, at=c(0,1,2,2.5,3,4,5), pos=0) axis(2, at=seq(0, 10, 2), pos=0) abline(h = 1:5)