Export heatmaps to interactive Shiny apps
masterInteractiveComplexHeatmap package allows you to export static complex heatmaps created with ComplexHeatmap into an interactive Shiny application.repository·master·Indexed 23 days ago
https://github.com/jokergoo/complexheatmapAn R package for flexible visualization of associations between data sets. It supports creating single or multiple heatmaps, adding column and row annotations via HeatmapAnnotation, and arranging heatmaps using the + operator. It is available on Bioconductor and can be extended into interactive Shiny apps using the InteractiveComplexHeatmap package.
InteractiveComplexHeatmap package allows you to export static complex heatmaps created with ComplexHeatmap into an interactive Shiny application.ComplexHeatmap is available on Bioconductor. You can install it using BiocManager. Alternatively, you can install the latest development version directly from GitHub using devtools.
# Install via Bioconductor
if (!requireNamespace("BiocManager", quietly=TRUE))
install.packages("BiocManager")
BiocManager::install("ComplexHeatmap")
# Install latest version from GitHub
library(devtools)
install_github("jokergoo/ComplexHeatmap")When creating a list of heatmaps, you can add row annotations by creating a HeatmapAnnotation object with the which = "row" argument and adding it to the heatmap list using the + operator.
ha = HeatmapAnnotation(df = anno1, anno_fun = anno2, ..., which = "row")
Heatmap(mat1, ...) + Heatmap(mat2, ...) + haUse the Heatmap() function to visualize a single matrix.
Heatmap(mat, ...)To add annotations to the columns of a heatmap, create a HeatmapAnnotation object and pass it to the top_annotation argument of the Heatmap() function.
ha = HeatmapAnnotation(df = anno1, anno_fun = anno2, ...)
Heatmap(mat, ..., top_annotation = ha)You can arrange multiple heatmaps together using the + operator.
Heatmap(mat1, ...) + Heatmap(mat2, ...)