[R] RES: How to force axis to have the same range

Sebastien Bihorel Sebastien.Bihorel at cognigencorp.com
Fri Apr 24 15:36:28 CEST 2009


Thanks to Greg and Deepayan for their answers.

*Sebastien Bihorel, PharmD, PhD*
PKPD Scientist
Cognigen Corp
Email: sebastien.bihorel at cognigencorp.com 
<mailto:sebastien.bihorel at cognigencorp.com>
Phone: (716) 633-3463 ext. 323


Greg Snow wrote:
> For variables named my.x and my.y try:
>
>   
>> plot( my.x, my.y, xlim=range(my.x,my.y), ylim=range(my.x,my.y) )
>>     
>
> If all you want is to have the same range of values on both the x and y axes.
>
>




More information about the R-help mailing list