Interactive heat maps
Metabolites and lipids multivariate statistical analysis in R
# Assume we are at the last step of creating our heat map with ComplexHeatmap.
# We store this output as 'draw.heatmap':
draw.heatmap <- draw(heatmap, heatmap_legend_side="right")
# We will quickly install the shiny library:
install.packages("shiny")
# We call now:
library(shiny)
library(InteractiveComplexHeatmap)
# We specify our 'draw.heatmap' object as 'ht':
ht <- draw.heatmap
# Now, highlight and run this code:
ui = fluidPage(
InteractiveComplexHeatmapOutput()
)
server = function(input, output, session) {
makeInteractiveComplexHeatmap(input, output, session, ht)
}
shiny::shinyApp(ui, server)


Last updated