[R] aspect ratio 1 and blank space
Greg Snow
Greg.Snow at imail.org
Thu Nov 18 17:12:21 CET 2010
Look at the squishplot function in the TeachingDemos package, it may do what you want, or if not quite then you could perhaps tweak the code to include the values you want and create the correct aspect ratio.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Silvia Cecere
> Sent: Wednesday, November 17, 2010 10:26 AM
> To: r-help at r-project.org
> Subject: [R] aspect ratio 1 and blank space
>
>
> 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,
>
> ______________________________________________
> 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.
More information about the R-help
mailing list