cluster_data: Cluster data using hierarchical clustering or use provided...

View source: R/add_dendrogram.R

cluster_dataR Documentation

Cluster data using hierarchical clustering or use provided clustering.

Description

Cluster data using hierarchical clustering or use provided clustering.

Usage

cluster_data(
  cluster_input,
  mat,
  cluster_distance,
  cluster_method,
  dend_options = NULL
)

Arguments

cluster_input

Either a logical indicating if data should be clustered, or a hclust or dendrogram object.

mat

Matrix to cluster.

cluster_distance

Distance metric for clustering.

cluster_method

Clustering method for hclust.

dend_options

List or functional sequence specifying dendextend functions to use.

Value

List containing the dendrogram and clustering objects.


ggcorrheatmap documentation built on Aug. 25, 2025, 1:11 a.m.