plotARIs: Plot an heatmap of the ARI matrix

Description Usage Arguments Value Examples

View source: R/plot.R

Description

We can compute the ARI between pairs of cluster labels. This function plots a matrix where a cell is the adjusted Rand Index between cluster label of row i and cluster label of column j.

Usage

1
plotARIs(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)
plotARIs(merger$initialMat)
plotARIs(merger$currentMat)

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