geohclust_graph | R Documentation |
This function take an data.frame and performs hierarchical clustering with contiguity constraints using a graph describing the contiguity (provided )
geohclust_graph(adjacencies_list, df, method = "ward", scaling = "raw")
adjacencies_list |
graph describing the contiguity between the rows of df as a list of adjacencies |
df |
a data.frame with numeric columns |
method |
linkage criterion in ward (default) or average, median |
scaling |
default scaling of the features in zscore or raw (i.e. no scaling, the default) |
an stats::hclust
like object with additional slots
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.