Cluster data using hierarchical clustering or use provided clustering.
cluster_data(
cluster_input,
mat,
cluster_distance,
cluster_method,
dend_options = NULL
)
List containing the dendrogram and clustering objects.
Either a logical indicating if data should be clustered, or a hclust
or dendrogram
object.
Matrix to cluster.
Distance metric for clustering.
Clustering method for hclust
.
List or functional sequence specifying dendextend
functions to use.