Hierarchical clustering with contiguity constraints between polygons
gtclust_poly.Rd
This function take an sf
data.frame and performs hierarchical clustering with contiguity constraints.
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)
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