Re: [R] Proportional axes

From: Ivar Herfindal <>
Date: Wed, 21 May 2008 11:27:47 +0200


Try the to set asp=1 (aspect ratio between y- and x-axis):

plot(runif(10, 0, 10), runif(10, 10, 30), asp=1)


Ivar Herfindal

Agustin Lobo skrev:
> Hi!
> If I'm plotting 2 variables with the same units
> (i.e. wing length of 2 species), how can I force that X
> and Y axes have the same size for length unit? For example, if
> X ranges from 0 to 10 and Y ranges from 10 to 30, I want
> Y axis to be twice as long as X axis. I know I can just
> put xlim and ylim from 0 to 30, i.e.,
> plot(runif(10,0,10),runif(10,10,30),xlim=c(0,30),ylim=c(0,30))
> but this is a waste of space.
> Thanks
> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 21 May 2008 - 09:55:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 21 May 2008 - 11:30:43 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive