[R] Plotting proportions
Bill Dunlap
w||||@mwdun|@p @end|ng |rom gm@||@com
Mon Apr 4 03:06:55 CEST 2022
plot.window() (hence the default plot()) has an 'asp' argument that sets
the ratio of the y and x scales.
E.g.,
par(mfrow=c(3,1))
plot( 1i ^ (0:4), type="l")
plot( 1i ^ (0:4), type="l", asp=1)
plot( 1i ^ (0:4), type="l", asp=0.5)
-Bill
On Sun, Apr 3, 2022 at 2:55 PM Jim Lemon <drjimlemon using gmail.com> wrote:
> Hi Nick,
> If you can bear using R base graphics, the plotrix package has a
> function named "getYmult" that allows you to adjust for the aspect
> ratio of any plot area.
>
> Jim
>
> On Sun, Apr 3, 2022 at 11:14 PM Nick Wray <nickmwray using gmail.com> wrote:
> >
> > Hello If you plot a square in the default R studio window you see a
> > rectangle. Does anyone know what the proportions of the sides of this
> > rectangle are? Thanks Nick Wray
> >
> > [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > 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.
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list