clusterDataDend: Create a hclust object from the distance matrix

View source: R/clusterProfile.R

clusterDataDendR Documentation

Create a hclust object from the distance matrix

Description

Create a hclust object from the distance matrix

Usage

clusterDataDend(distanceMatrix = NULL, clusterMethod = "complete")

Arguments

distanceMatrix

calculated distance matrix as dist object

clusterMethod

clustering method ("single", "complete", "average" for UPGMA, "mcquitty" for WPGMA, "median" for WPGMC, or "centroid" for UPGMC). Default = "complete".

Value

An object class hclust generated based on input distance matrix and a selected clustering method.

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

getDataClustering, getDistanceMatrix, hclust

Examples

data("finalProcessedProfile", package="PhyloProfile")
data <- finalProcessedProfile
profileType <- "binary"
profiles <- getDataClustering(
    data, profileType, var1AggregateBy, var2AggregateBy)
distMethod <- "mutualInformation"
distanceMatrix <- getDistanceMatrix(profiles, distMethod)
clusterMethod <- "complete"
clusterDataDend(as.dist(distanceMatrix), clusterMethod)

BIONF/PhyloProfile documentation built on Dec. 18, 2024, 7:33 a.m.