mframe: Multiple Frames for Plotting

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This is a short-cut to set some graphical parameters

Usage

1
2
3
mframe(mfrow = NULL, mfcol = NULL, mft = NULL, row = TRUE,
  oma = c(0, 0, 2, 1), mar = getUserOption("mar"),
  mgp = getUserOption("mgp"), ...)

Arguments

mfrow, mfcol

number of rows and columns of panels. The default is 1 for both, which will reset the subdivision of the plotting page.

mft

total number of panels, to be split into mfrow and mfcol by the function. The result depends on the current aspect ratio (ratio of height to width) of the plotting area.

row

if TRUE, the panels will be used by rows, otherwise, by columns

oma, mar, mgp, ...

further graphical parameters passed to par(...).

Details

The function calls par. Its purpose is to simplify a call like par(mfrow=c(3,4)) to mframe(3,4) and to set some defaults differently from par.

Value

a named list containing the old values of the parameters, as for par.

Author(s)

Werner A. Stahel, ETH Zurich

See Also

par; mult.fig from package sfsmisc with very similar goals.

Examples

1
2
3
mframe(2,3)
mframe(mft=15)  ## will split the plotting area into >= 15 panels,
mframe()  ## reset to 1 panel

regr0 documentation built on May 2, 2019, 4:52 p.m.

Related to mframe in regr0...