partitionPlot {wrGraph} | R Documentation |
Make matrix for layout to partition plotting area
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
partitionPlot(
nFig,
returnMatr = TRUE,
horiz = TRUE,
figNcol = NULL,
byrow = TRUE,
silent = TRUE,
debug = FALSE,
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 |
horiz |
(logical) will priviledge horizontal layout if |
figNcol |
(integer) optional number of columns |
byrow |
(logical) toggle if output is in order of rows or columns (equivament to |
silent |
(logical) suppress messages |
debug |
(logical) additonal messages for debugging |
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
Examples
partitionPlot(5); partitionPlot(14,horiz=TRUE)