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 at 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 at 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.
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 at 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 at 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 at 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 at 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]]
Hi, Beyond the clear COI, allow me to suggest RadViz3D for fully three-dimensional radial visualization, which as pointed out by a reviewer, is ideal for proportions data. The paper is here: Fully Three-Dimensional Radial Visualization by Yifan Zhu, Fan Dai, and Ranjan Maitra Journal of Computational and Graphical Statistics. 2022, https://doi.org/10.1080/10618600.2021.2020129 The R package is on github: https://github.com/fanne-stat/radviz3d Best wishes, Ranjan On Mon Apr04'22 07:54:51AM, Jim Lemon wrote:> From: Jim Lemon <drjimlemon at gmail.com> > Date: Mon, 4 Apr 2022 07:54:51 +1000 > To: Nick Wray <nickmwray at gmail.com>, r-help mailing list > <r-help at r-project.org> > Subject: Re: [R] Plotting proportions > > 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 at 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 at 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 at 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.