Par | R Documentation |
This function sets the graphical parameters which are specified as its
function arguments in a call to par
. The function's
default settings are set to produce visually more appealing plots compared to
base R's default settings. You can change the function's defaults to your
needs and/or set additional graphical parameters by passing them in tag
= value
form.
Par(
mar = c(5, 5, 0.5, 0.5),
las = 1,
cex.axis = 1.25,
cex.lab = 1.5,
cex.main = 1.5,
...
)
mar |
a numerical vector of the form ‘c(bottom, left, top, right)’ which
gives the number of lines of margin to be specified on the four sides of
the plot. The default is |
las |
the style of axis labels; default is to always use horizontal axis
labels (note that you then need to manually set |
cex.axis |
the magnification to be used for axis annotation relative to
the current setting of |
cex.lab |
the magnification to be used for x and y labels relative to the
current setting of |
cex.main |
the magnification to be used for main titles relative to the
current setting of |
... |
further graphical parameter settings passed on to
|
invisibly, the original graphical parameter settings prior to the
changes from a call to Par
to enable restoring the default
settings; see the example.
Thomas Münch
par
op <- Par()
plot(1 : 10, type = "l", main = "", xlab = "X title", ylab = "Y title")
par(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.