heatm {drclust}R Documentation

Heatmap of a partition in a reduced subspace

Description

Plots the heatmap of a partition on a reduced subspace obtained via either: doublekm, redkm, factkm or dpcakm.

Usage

heatm(data, drclust_out)

Arguments

data

Units x variables data matrix.

drclust_out

Out of either doublekm, redkm, factkm or dpcakm.

Value

No return value, called for side effects

Author(s)

Ionel Prunila, Maurizio Vichi

References

Kolde R. (2019) "pheatmap: Pretty Heatmaps" <https://cran.r-project.org/web/packages/pheatmap/index.html>

Examples

# 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)


[Package drclust version 0.1 Index]