partitionPlot: Make matrix for layout to partition plotting area

Description Usage Arguments Value See Also Examples

View source: R/partitionPlot.R

Description

This function proposes a matrix for use with layout to arrange given number of plots to be placed on a page/plotting area. In certain instances the proposed layout may accomodate slightly more plots, eg nFig=5 can not be arranged in 2 or 3 columns without an empty last spot. Portrait (vertival) or lanscape (horizontal) layout proportions can be chosen. The user can also impose a given number of columns.

Usage

1
2
3
4
5
6
7
8
partitionPlot(
  nFig,
  returnMatr = TRUE,
  horiz = TRUE,
  figNcol = NULL,
  byrow = TRUE,
  callFrom = NULL
)

Arguments

nFig

(integer) number of figures to be arrages on single plotting surface (ie window or plotting device)

returnMatr

(logical) will return matrix ready for use by layout; returns vector with nRow and nCol if =FALSE

horiz

(logical) will priviledge horizontal layout if TRUE

figNcol

(integer) optional number of columns

byrow

(logical) toggle if output is in order of rows or columns (equivament to matrix

callFrom

(character) allows easier tracking of messages produced

Value

matrix for use with layout or (if returnMatr=FALSE numeric vector with number of segements in x- an y-axis)

See Also

layout

Examples

1

wrGraph documentation built on April 12, 2021, 1:07 a.m.