[R] aspect ratio 1 and blank space

Silvia Cecere scecere at yahoo.com
Wed Nov 17 18:26:02 CET 2010


Hi,
I need to produce an ordinary scatter plot and it is vital that the aspect ratio equals 1. 

I set the axis as:

plot(x, y, type="n", asp=1, ,ylim=c(-80,70),xlim=c(0,100)).

The problem is that I get some 'additional' blank plot area (basically, the lower bound of xlim becomes quite negative). 

The xlim is not the range of the x-data,  but I need the 0 there for further plotting.


Any way to specify that even with asp=1,  xlim=c(0,100)?

Thanks,



More information about the R-help mailing list