Get aspect ratio for coordinates, plot, or device
character
type of aspect ratio to calculate.
calculates plot coordinate aspect ratio, which is helpful for creating proper circular shapes, for example, where the x-axis and y-axis ranges are very different. Note that this calculation does also correct for margin sizes.
calculates plot aspect ratio, based upon the actual size of the plot, independent of the numeric coordinate range of the plot. This aspect ratio reflects the relative visual height and width of the plot area, ignoring margins.
calculates plot aspect ratio, based upon the complete graphical device, i.e. the full space including all panels, margins, and plot areas.
numeric
values equivalent to their
respective par()
output, from par("usr")
,
par("pin")
, and par("din")
. Values can be
supplied directly, which among other things, prevents opening a
graphical device if one is not already opened. Any call to
par()
will otherwise cause a graphic device to be opened,
which may not be desired on a headless R server.
additional parameters are ignored.
numeric
plot aspect ratio for a plot device, of the requested
type, see the type
argument.
Other jam plot functions:
adjustAxisLabelMargins()
,
coordPresets()
,
decideMfrow()
,
drawLabels()
,
groupedAxis()
,
imageByColors()
,
imageDefault()
,
minorLogTicksAxis()
,
nullPlot()
,
plotPolygonDensity()
,
plotRidges()
,
plotSmoothScatter()
,
shadowText_options()
,
shadowText()
,
showColors()
,
smoothScatterJam()
,
sqrtAxis()
,
usrBox()