Sub-heatmap output UI component for the ComplexHeatmap module
Source:R/ComplexHeatmap_Heatmap_module_ui.R
ComplexHeatmap_HeatmapSubOutputUI.RdRenders only the selected sub-heatmap panel (the zoomed-in view of a
brushed/selected region), via InteractiveComplexHeatmap::subHeatmapOutput().
See ComplexHeatmap_HeatmapMainOutputUI() for how the separated output
pieces fit together.
Usage
ComplexHeatmap_HeatmapSubOutputUI(
id,
title = NULL,
width = 400,
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::subHeatmapOutput().
Examples
if (FALSE) { # interactive()
library(VizModules)
if (requireNamespace("InteractiveComplexHeatmap", quietly = TRUE)) {
ComplexHeatmap_HeatmapSubOutputUI("heatmap", title = "Selected region")
}
}