plot_sample_clustering | R Documentation |
Plot clustering of samples in a distance heatmap
plot_sample_clustering(
se,
n_feats = 500,
anno_vars = NULL,
anno_title = "group",
distance = "euclidean",
...
)
se |
A SummarizedExperiment object. |
n_feats |
Number of top-variable features (genes) to consider |
anno_vars |
Character vector of columns in |
anno_title |
The title of the color legend for |
distance |
The type of distance metric to consider. Either 'euclidean', 'pearson' or 'spearman' |
... |
Other arguments passed on to ComplexHeatmap::Heatmap() |
A Heatmap-class object of the ComplexHeatmap
package that contains the heatmap of pairwise sample distances.
library("DESeq2")
dds <- makeExampleDESeqDataSet(m=8, interceptMean=10)
vsd <- vst(dds)
plot_sample_clustering(vsd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.