LoadGraphicsPar: Load graphical parameters.

Description Usage Value Author(s) See Also Examples

Description

This function returns a list of the graphical parameters specified as its function arguments, which can then be set via a call to par. Default function parameters are my default plotting parameters; different or additional parameters can be specified via .... This wrapper function provides a convenient way to set new graphical parameters and save their old values for later restoring at the same time; see the example. See ?par for information on the individual parameters.

Usage

1
2
3
LoadGraphicsPar(mar = c(5, 5, 0.5, 0.5), lwd = 1, las = 1,
  font.lab = 1, font.axis = 1, cex.main = 1.5, cex.lab = 1.5,
  cex.axis = 1.25, ...)

Value

A list of graphical parameters to be used with par(); i.e. per default:

Author(s)

Thomas Münch

See Also

par

Examples

1
2
3
4
op <- par(LoadGraphicsPar())
plot(1 : 10, main = "Example plot",
     xlab = "X title", ylab = "Y title", type = "l")
par(op)

thomas-muench/tmlibr documentation built on May 26, 2019, 10:36 a.m.