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.
partitionPlot(
nFig,
returnMatr = TRUE,
horiz = TRUE,
figNcol = NULL,
byrow = TRUE,
silent = TRUE,
debug = FALSE,
callFrom = NULL
)
matrix for use with layout
or (if returnMatr=FALSE
numeric vector with number of segements in x- an y-axis)
(integer) number of figures to be arrages on single plotting surface (ie window or plotting device)
(logical) will return matrix ready for use by layout
; returns vector with nRow and nCol if =FALSE
(logical) will priviledge horizontal layout if TRUE
(integer) optional number of columns
(logical) toggle if output is in order of rows or columns (equivament to matrix
(logical) suppress messages
(logical) additonal messages for debugging
(character) allows easier tracking of messages produced
partitionPlot(5); partitionPlot(14,horiz=TRUE)
Run the code above in your browser using DataLab