combinePanels {bubbleHeatmap} | R Documentation |
Combine Multiple Panels In A New gTree.
Description
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.
Usage
combinePanels(
name,
panels,
nrow,
ncol,
spacer = unit(0, "cm"),
margin = unit(0, "cm"),
just = c(0.5, 0.5)
)
Arguments
name |
Character string naming the new tree and viewport (viewport will have suffix "VP") |
panels |
Panels to be arranged in the new tree |
nrow |
Numeric, number of rows in the new layout |
ncol |
Numeric, number of columns in the new layout |
spacer |
Grid |
margin |
Grid |
just |
Numeric or character vector specifying justification of panel
viewports within new tree viewport layout cells.
See |
Value
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.