geohclust_poly: Hierarchical clustering with contiguity constraints between...

View source: R/geohclust.R

geohclust_polyR Documentation

Hierarchical clustering with contiguity constraints between polygons

Description

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

Usage

geohclust_poly(df, method = "ward", adjacency = "rook", scaling = "raw")

Arguments

df

an sf::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)

Value

an stats::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/geohclust documentation built on May 23, 2022, 6:30 a.m.