scl_recluster | R Documentation |
Re-cut a spatial cluster tree (scl
) at a different number of clusters.
scl_recluster(scl, ncl, shortest = TRUE, quiet = FALSE)
scl |
An |
ncl |
Desired number of clusters. See description of 'ncl_iterate' parameter for conditions under which actual number may be less than this value. |
shortest |
If |
quiet |
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()
n <- 100
xy <- matrix (runif (2 * n), ncol = 2)
dmat <- matrix (runif (n^2), ncol = n)
scl <- scl_redcap (xy, dmat, ncl = 4)
plot (scl)
scl <- scl_recluster (scl, ncl = 5)
plot (scl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.