powered by
Plot clustering of samples in a distance heatmap
plot_sample_clustering( se, n_feats = 500, anno_vars = NULL, anno_title = "group", distance = "euclidean", ... )
A Heatmap-class object of the ComplexHeatmap package that contains the heatmap of pairwise sample distances.
ComplexHeatmap
A SummarizedExperiment object.
Number of top-variable features (genes) to consider
Character vector of columns in colData(se) to annotate samples
colData(se)
The title of the color legend for anno_vars
anno_vars
The type of distance metric to consider. Either 'euclidean', 'pearson' or 'spearman'
Other arguments passed on to ComplexHeatmap::Heatmap()
# \donttest{ library("DESeq2") dds <- makeExampleDESeqDataSet(m=8, interceptMean=10) vsd <- vst(dds) plot_sample_clustering(vsd) # }
Run the code above in your browser using DataLab