R always makes x axis longer compared to the y axis, even if they both have the same limits. Is there an option to control the length of the axis?
plot(0:100,0:100)
I need it to be a square.
R always makes x axis longer compared to the y axis, even if they both have the same limits. Is there an option to control the length of the axis?
plot(0:100,0:100)
I need it to be a square.
Yes, at least if you are using base graphics. The asp argument should be set to 1:
plot(0:100,0:100, asp=1) # see ?plot.default
The duplicate that Ben found also has
plot(0:100,0:100, pty="s")