gtclust_poly: Hierarchical clustering with contiguity constraints between...

View source: R/gtclust.R

gtclust_polyR Documentation

Hierarchical clustering with contiguity constraints between polygons

Description

This function take an sf data.frame and performs hierarchical clustering with contiguity constraints.

Usage

gtclust_poly(
  df,
  method = "ward",
  adjacency = "rook",
  scaling = "raw",
  display_progress = FALSE
)

Arguments

df

an sf data.frame with polygons like features

method

linkage criterion in ward (default) or average, median

adjacency

adjacency type to use "rook" (default) or queen

scaling

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

display_progress

boolean to set progression bar

Value

an hclust like object with additional slots

leafs_geometry

geometries of the dendrogram leafs as an sfc list

geotree

geometries of the dendrogram no-leafs node as an sfc list

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.