[R] plots: gap between x- and y-axis
Martin Batholdy
batholdy at googlemail.com
Fri Mar 26 21:46:43 CET 2010
Hi,
I was wondering why the gap between the x- and the y-axis gets bigger with a wider plot window.
see this example;
quartz("1",10,3)
par(bty="n")
plot(1:9, xaxt="n")
axis(1, 1:9)
quartz("2",30,3)
par(bty="n")
plot(1:9, xaxt="n")
axis(1, 1:9)
quartz("3",80,3)
par(bty="n")
plot(1:9, xaxt="n")
axis(1, 1:9)
Each time the distance between the y-axis to the x-axis gets larger.
This looks pretty strange in a big plot.
I think on windows machines you have to use X11 instead of quartz;
X11("1",10,3)
par(bty="n")
plot(1:9, xaxt="n")
axis(1, 1:9)
X11("2",30,3)
par(bty="n")
plot(1:9, xaxt="n")
axis(1, 1:9)
X11("3",80,3)
par(bty="n")
plot(1:9, xaxt="n")
axis(1, 1:9)
More information about the R-help
mailing list