plotNMIs {Dune}R Documentation

Plot an heatmap of the NMI matrix

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

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

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

[Package Dune version 1.6.0 Index]