Convenience wrapper around graphics::par() for getting and setting
plot margins (mar) or outer margins (oma). Individual sides can
be modified without affecting the others.
Value
If no arguments are provided, returns the current margin vector (numeric of length 4). Otherwise, sets the margins and returns the new values invisibly.
Details
This function simplifies partial updates of par("mar") or par("oma").
It avoids the need to manually query and reconstruct the full margin vector.
For restoring graphical parameters, the recommended base R approach is:
See also
Other graphics.layout:
abcCoords(),
axTicks,
axisBreak(),
isValidPlotRegion(),
lineToUser(),
plotFacet(),
spreadOut()
