Description Usage Arguments Value Examples
This function plots a heatmap figure form a distance or
similarity matrix. The colors denote the sample types based on label
.
1 | plotHeatmap(dists, label)
|
dists |
A distance or similarity matrix. |
label |
True labels of sample. |
This function returns a heatmap object invisibly.
1 2 3 4 5 6 | library(gplots)
library(RColorBrewer)
load(system.file("data","yan.Rdata",package = "scNPF"))
data.dist <- as.matrix(dist(t(yan$data)))
#dev.off()
plotHeatmap(data.dist,yan$label)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.