Make matrix for layout to partition plotting area
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, callFrom = NULL )
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 |
callFrom |
(character) allows easier tracking of messages produced |
matrix for use with layout
or (if returnMatr=FALSE
numeric vector with number of segements in x- an y-axis)
partitionPlot(5); partitionPlot(14,horiz=TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.