| usrBox | R Documentation |
Draw colored box indicating the active R plot space
usrBox(
fill = "#FFFF9966",
label = NULL,
parUsr = graphics::par("usr"),
debug = FALSE,
...
)
fill |
|
label |
|
parUsr |
|
debug |
|
... |
additional arguments are ignored. |
This function simply draws a box indicating the active plot space, and by default it shades the box light yellow with transparency. It can be useful to indicate the active plot area while allowing pre-drawn plot elements to be shown, or can be useful precursor to provide a colored background for the plot.
The plot space is defined using graphics::par("usr") and therefore requires
an active R device is already opened.
no output, this function is called for the byproduct of adding a box in the usr plot space of an R graphics device.
Other jam plot functions:
adjustAxisLabelMargins(),
coordPresets(),
decideMfrow(),
drawLabels(),
getPlotAspect(),
groupedAxis(),
imageByColors(),
imageDefault(),
minorLogTicksAxis(),
nullPlot(),
plotPolygonDensity(),
plotRidges(),
plotSmoothScatter(),
shadowText(),
shadowText_options(),
showColors(),
sqrtAxis()
# usrBox() requires that a plot device is already open
nullPlot(doBoxes=FALSE);
usrBox();
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.