Skip to content
Prev 258753 / 398503 Next

Controlling the extent of ablines on plot

On Tue, May 3, 2011 at 10:40 AM, Joshua Wiley <jwiley.psych at gmail.com> wrote:
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)