Re-cut a spatial cluster tree (scl) at a different number of clusters.
scl_recluster(scl, ncl, shortest = TRUE, quiet = FALSE)An scl object returned from scl_redcap.
Desired number of clusters. See description of `ncl_iterate` parameter for conditions under which actual number may be less than this value.
If TRUE, the dmat is interpreted as distances
such that lower values indicate stronger relationships, and the tree is cut
to minimise the within-cluster sum of squared deviations of dmat
values. If FALSE, then higher values of dmat are interpreted
to indicate stronger relationships, as is the case for example with
covariances, and the tree is cut to maximise the mean dmat value
within clusters. This parameter only affects how the tree is cut; it has no
effect on construction of the spanning tree, which is always based on
spatial distances.
If `FALSE` (default), display progress information on screen.
Modified scl object in which tree is re-cut into
ncl clusters.
Other clustering_fns:
scl_full(),
scl_redcap()