plmframes {plgraphics}R Documentation

Multiple Frames for Plotting

Description

This is a short-cut to set some graphical parameters

Usage

plmframes(mfrow = NULL, mfcol = NULL, mft = NULL, nrow = NULL, ncol = NULL,
  byrow = TRUE,
  oma = NULL, mar = NULL, mgp = NULL, ...)

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.

nrow, ncol

maximum number of rows and columns on one page

byrow

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

mar

plot margins. Any NAs in mar will be replaced by the respective current values.

oma

outer plot margins. They will be widened if necessary to accomodate axis annotations.

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 plmframes(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

Examples

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

[Package plgraphics version 1.0 Index]