Main heatmap output UI component for the ComplexHeatmap module
Source:R/ComplexHeatmap_Heatmap_module_ui.R
ComplexHeatmap_HeatmapMainOutputUI.RdRenders only the original (main) interactive heatmap panel, via
InteractiveComplexHeatmap::originalHeatmapOutput(). Use this together with
ComplexHeatmap_HeatmapSubOutputUI() and/or ComplexHeatmap_HeatmapInfoOutputUI()
to place the three interactive components independently in a custom layout,
instead of ComplexHeatmap_HeatmapOutputUI()'s single combined widget. All
pieces used for one heatmap must share the same module id as the
ComplexHeatmap_HeatmapServer() call — no server-side changes are needed to
switch between the combined and separated forms.
Usage
ComplexHeatmap_HeatmapMainOutputUI(
id,
title = NULL,
width = 450,
height = 350,
fit.width = TRUE,
...
)Arguments
- id
The ID for the Shiny module. Must match the
idused forComplexHeatmap_HeatmapServer()and any other output pieces for the same heatmap.- title
Optional panel title.
NULL(the default) omits the title.- width, height
Panel dimensions in pixels.
- fit.width
Logical; when
TRUE(the default) the panel is scaled once on load to fit the width of its container, makingwidtha starting proportion rather than an absolute size. SeeComplexHeatmap_HeatmapOutputUI().- ...
Additional arguments passed to
InteractiveComplexHeatmap::originalHeatmapOutput(), e.g.action,response,brush_opt.
Examples
if (FALSE) { # interactive()
library(VizModules)
if (requireNamespace("InteractiveComplexHeatmap", quietly = TRUE)) {
ComplexHeatmap_HeatmapMainOutputUI("heatmap", title = "Heatmap")
}
}