Mar.Rd
Plot margins are normally set by par("mar")
. However one is forced to always define all margins, even if just one should be altered. The convenience function Mar()
allows to set one single margin (or several) while leaving the others unchanged.
Mgp()
does the same for the distances of axis title, labels and line.
Mar(bottom = NULL, left = NULL, top = NULL, right = NULL, outer = FALSE,
reset = FALSE)
Mgp(title = NULL, labels = NULL, line = NULL, reset = FALSE)
the bottom margin, if set to NULL
the current value will be maintained.
the left margin, if set to NULL
the current value will be maintained.
the top margin, if set to NULL
the current value will be maintained.
the right margin, if set to NULL
the current value will be maintained.
logical, defining if inner margins (par("mar")
) or the outer margins (par("oma")
) should be set. Default is FALSE
, meaning that the inner margins will be concerned.
if set to TRUE
the margins are reset to the defaults (respecting outer
). Other arguments are ignored.
margin line for the axis title (default 3)
margin line for the axis labels (default 1)
margin line for the axis line (default 0)
Running Mar()
without any arguments will return the current settings, either par("mar")
, when outer is set to FALSE
or par("oma")
for outer = TRUE
.