The combinePanels function creates a new gTree containing a viewport with a
grid layout, and arranges multiple panels (created with the
arrangePanels function) within that grid. The new layout is
filled by rows.
combinePanels(
name,
panels,
nrow,
ncol,
spacer = unit(0, "cm"),
margin = unit(0, "cm"),
just = c(0.5, 0.5)
)New gTree object with children slot containing
all trees in the grobLists of input panels, and a childrenvp slot containing
all viewports in input panels arranged within a new parent viewport layout.
Character string naming the new tree and viewport (viewport will have suffix "VP")
Panels to be arranged in the new tree
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 panels.
Grid unit object specifying size of margin
around tree.
Numeric or character vector specifying justification of panel
viewports within new tree viewport layout cells.
See viewport.