heatm | R Documentation |
Plots the heatmap of a partition on a reduced subspace obtained via either: doublekm, redkm, factkm or dpcakm.
heatm(data, drclust_out)
data |
Units x variables data matrix. |
drclust_out |
Out of either doublekm, redkm, factkm or dpcakm. |
No return value, called for side effects
Ionel Prunila, Maurizio Vichi
Kolde R. (2019) "pheatmap: Pretty Heatmaps" <https://cran.r-project.org/web/packages/pheatmap/index.html>
# Iris data
# Loading the numeric variables of iris data
iris <- as.matrix(iris[,-5])
# standardizing the data
iris <- scale(iris)
# applying a clustering algorithm
drclust_out <- dpcakm(iris, 20, 3)
# obtain a heatmap based on the output of the clustering algorithm and the data
h <- heatm(iris, drclust_out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.