Re: [R] Proportional axes

From: Ivar Herfindal <ivar.herfindal_at_bio.ntnu.no>
Date: Wed, 21 May 2008 11:27:47 +0200

Hello.

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

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

Best

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
>



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive