gtclust_graph: Hierarchical clustering with contiguity constraints

View source: R/gtclust.R

gtclust_graphR Documentation

Hierarchical clustering with contiguity constraints

Description

This function take an data.frame and performs hierarchical clustering with contiguity constraints using a graph describing the contiguity (provided )

Usage

gtclust_graph(
  adjacencies_list,
  df,
  method = "ward",
  scaling = "raw",
  display_progress = FALSE
)

Arguments

adjacencies_list

graph describing the contiguity between the rows of df as a list of adjacencies

df

a data.frame with numeric columns

method

linkage criterion in ward (default) or average, median

scaling

default scaling of the features in zscore or raw (i.e. no scaling, the default)

display_progress

boolean to set progression bar

Value

an hclust like object with additional slots

data

The numeric data (eventually scaled) used for the clustering

centers

The protoypes of each tree nodes


comeetie/gtclust documentation built on Sept. 17, 2024, 12:45 a.m.