plotNMIs: Plot an heatmap of the NMI matrix

Description Usage Arguments Value Examples

View source: R/plot.R

Description

We can compute the NMI between pairs of cluster labels. This function plots a matrix where a cell is the Normalized Mutual Information between cluster label of row i and cluster label of column j.

Usage

1
plotNMIs(clusMat, unclustered = NULL, values = TRUE, numericalLabels = FALSE)

Arguments

clusMat

The clustering matrix with a row per cell and a column per clustering label type

unclustered

The value assigned to unclustered cells. Default to NULL

values

Whether to also display the ARI values. Default to TRUE.

numericalLabels

Whether labels are numerical values. Default to FALSE.

Value

a ggplot object

Examples

1
2
3
4
data("clusMat", package = "Dune")
merger <- Dune(clusMat = clusMat, metric = "NMI")
plotNMIs(merger$initialMat)
plotNMIs(merger$currentMat)

HectorRDB/Dune documentation built on Dec. 18, 2020, 8:08 p.m.