geohclust_knn | R Documentation |
This function take a data.frame and performs hierarchical clustering with contiguity constraints.
geohclust_knn(df, k = 3, method = "ward", scaling = "raw")
df |
an |
k |
number of nearest neighbors to take for building the graph (the graph will be symmetric so some points may have in fine more neighbors) |
method |
linkage criterion in ward (default) or average, median |
scaling |
default scaling of the features in zscore (default) or raw (i.e. no scaling) |
an stats::hclust
like object with additional slots
The numeric data (eventually scaled) used for the clustering
The protoypes of each tree nodes
geometries of the dendrogram leafs as an sfc list
geometries of the dendrogram no-leafs node as an sfc list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.