Learn R Programming

NMF (version 0.2.2)

consensushc: Hierarchical Clustering of a Consensus Matrix

Description

The function consensushc computes the hierarchical clustering of a consensus matrix, using the matrix itself as a similarity matrix and average linkage. It is

Usage

consensushc(object, ...)

## S3 method for class 'matrix': consensushc(object, method = "average", dendrogram = TRUE)

## S3 method for class 'NMFfitX': consensushc(object, what = c("consensus", "fit"), ...)

Arguments

object
a matrix or an NMFfitX object, as returned by multiple NMF runs.
...
extra arguments passed to next method calls
method
linkage method passed to hclust.
dendrogram
a logical that specifies if the result of the hierarchical clustering (en hclust object) should be converted into a dendrogram. Default value is TRUE.
what
character string that indicates which matrix to use in the computation.

Value

  • an object of class dendrogram or hclust depending on the value of argument dendrogram.