The arrangePanels function creates a new viewport with a grid layout, and directs the input trees to be drawn at positions within the new layout. The new layout is filled by rows.
arrangePanels(
name,
subTrees,
nrow,
ncol,
spacer = unit(0, "cm"),
margin = unit(0, "cm"),
just = c(0.5, 0.5)
)List containing grobList (a list of modified gTrees) and vp, the new viewport object.
Character string naming the new viewport (will have suffix "VP")
gTrees to be arranged in the new panel
Numeric, number of rows in the new layout
Numeric, number of columns in the new layout
Grid unit object specifying size of space
left between plots.
Grid unit object specifying size of margin
around panel.
Numeric or character vector specifying justification of tree
viewports within panel viewport layout cells.
See viewport.