[R] Plotting proportions

Jim Lemon drj|m|emon @end|ng |rom gm@||@com
Mon Apr 4 10:25:54 CEST 2022

Hi Bill,
getYmult allows the user to draw a circle, square, etc. regardless of
whether the distortion is due to the plot aspect ratio or different x
and y ranges. It's handy when explicitly drawing regular geometric
figures on an existing plot.


On Mon, Apr 4, 2022 at 11:07 AM Bill Dunlap <williamwdunlap using gmail.com> wrote:
> 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)
>   lot( 1i ^ (0:4), type="l", asp=0.5)
> -Bill

More information about the R-help mailing list