View source: R/clusterProfile.R
clusterDataDend | R Documentation |
Create a hclust object from the distance matrix
clusterDataDend(distanceMatrix = NULL, clusterMethod = "complete")
distanceMatrix |
calculated distance matrix (see ?getDistanceMatrix) |
clusterMethod |
clustering method ("single", "complete", "average" for UPGMA, "mcquitty" for WPGMA, "median" for WPGMC, or "centroid" for UPGMC). Default = "complete". |
An object class hclust generated based on input distance matrix and a selected clustering method.
Vinh Tran tran@bio.uni-frankfurt.de
getDataClustering
,
getDistanceMatrix
, hclust
data("finalProcessedProfile", package="PhyloProfile")
data <- finalProcessedProfile
profileType <- "binary"
profiles <- getDataClustering(
data, profileType, var1AggregateBy, var2AggregateBy)
distMethod <- "mutualInformation"
distanceMatrix <- getDistanceMatrix(profiles, distMethod)
clusterMethod <- "complete"
clusterDataDend(distanceMatrix, clusterMethod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.