geocutree | R Documentation |
Cuts a tree, e.g., as resulting from geohclust_poly, into several groups either by specifying the desired number(s) of groups or the cut height(s).
geocutree(tree, k = NULL, h = NULL)
tree |
a tree as produced by geohclust. cutree() only expects a list with components merge, height, and labels, of appropriate content each. |
k |
an integer scalar or vector with the desired number of groups |
h |
numeric scalar or vector with heights where the tree should be cut. At least one of k or h must be specified, k overrides h if both are given. |
an sf::sf
like object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.