mfrowSet: Set mfrow Parameter

Description Usage Arguments Details Value Examples

Description

Compute and set a good par("mfrow") given the number of figures to plot.

Usage

1
  mfrowSet(n, trellis = FALSE, small = FALSE)

Arguments

n

numeric. Total number of figures to place in layout.

trellis

logical. Set to ‘TRUE’ when a ‘trellis’ plot is requested.

small

logical. Set to ‘TRUE’ if the plot area should be smaller to accomodate many plots.

Details

trellis and small may not both be specified as ‘TRUE’.

Value

return numeric vector. If trellis = TRUE the suggested ‘mfrow’ is returned. Otherwise the original ‘mfrow’ is returned invisibly.

Examples

1
oldmfrow <- mfrowSet(8)

harrelfe/rreport documentation built on May 17, 2019, 2:48 p.m.