geohclust_poly | R Documentation |
This function take an sf::sf
data.frame and performs hierarchical clustering with contiguity constraints.
geohclust_poly(df, method = "ward", adjacency = "rook", scaling = "raw")
df |
an |
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) |
an stats::hclust
like object with additional slots
geometries of the dendrogram leafs as an sfc list
geometries of the dendrogram no-leafs node as an sfc list
The numeric data (eventually scaled) used for the clustering
The protoypes of each tree nodes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.