View source: R/HeatmapExpPlotly.R
HeatmapExpPlotly | R Documentation |
Create an interactive heatmap of top variable genes using Heatmaply.
HeatmapExpPlotly(x, ColorPanel, scale, cluster, show_names, NumGenes)
x |
Numeric matrix of log-CPM values (genes × samples), e.g., from edgeR::cpm(). |
ColorPanel |
Character. Name of a continuous palette from the paletteer package. |
scale |
Character. Scaling mode: "row", "column", or "none". |
cluster |
Character or logical. Clustering option for dendrogram: "both", "row", "column", or "none". |
show_names |
Character. One of "both", "row", "column", or "none" to display row/column labels. |
NumGenes |
Integer. Number of top-variance genes to include in the heatmap. |
This function selects the highest-variance genes from a log-CPM matrix, transposes the data, and renders an interactive heatmap via "heatmaply", using "pheatmap" call.
Compute per-gene variance and select the top NumGenes.
Transpose the subsetted matrix so samples are rows.
Generate a temporary static heatmap with pheatmap to extract dendrograms.
Render an interactive heatmap with heatmaply::heatmaply().
A Plotly object (heatmaply) representing the interactive heatmap.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.