Skip to content
Prev 58866 / 398502 Next

axis lines crossing at origin

You probably want something like:

plot(x,sin(x), xaxt="n", yaxt="n")
axis(1, pos=0)
axis(2, pos=0)

... but note that axis() only draws the axes from the minimum tick to the
maximum tick.  You may still want to add:

abline(v=0, h=0)

HTH,
Andy