getPlotAspect | R Documentation |
Get aspect ratio for coordinates, plot, or device
getPlotAspect(
type = c("coords", "plot", "device"),
parUsr = par("usr"),
parPin = par("pin"),
parDin = par("din"),
...
)
type |
|
parUsr , parPin , parDin |
|
... |
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()
par("mfrow"=c(2,4));
for (i in 1:8) {
nullPlot(plotAreaTitle=paste("Plot", i), xlim=c(1,100), ylim=c(1,10),
doMargins=FALSE);
axis(1, las=2);
axis(2, las=2);
}
getPlotAspect("coords");
getPlotAspect("plot");
getPlotAspect("device");
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.