This document demostrates an interactive heatmap.
library(ComplexHeatmap) library(InteractiveComplexHeatmap) m = matrix(rnorm(100*100), 100) ht = Heatmap(m) htShiny(ht)
The source code of this R Markdown document is:
--- title: "InteractiveComplexHeatmap in an Rmarkdown document" author: "Zuguang Gu" date: "16/12/2020" output: html_document runtime: shiny --- This document demostrates an interactive heatmap. `r ''````r library(ComplexHeatmap) library(InteractiveComplexHeatmap) m = matrix(rnorm(100*100), 100) ht = Heatmap(m) htShiny(ht) ```
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.