scl_full | R Documentation |
Full spatially-constrained clustering.
scl_full(xy, dmat, ncl, linkage = "single", shortest = TRUE, nnbs = 6L)
xy |
Rectangular structure (matrix, data.frame, tibble), containing coordinates of points to be clustered. |
dmat |
Square structure (matrix, data.frame, tibble) containing
distances or equivalent metrics between all points in |
ncl |
Desired number of clusters. See description of 'ncl_iterate' parameter for conditions under which actual number may be less than this value. |
linkage |
Either |
shortest |
If |
nnbs |
Number of nearest neighbours to be used in calculating clustering
trees. Triangulation will be used if |
Other clustering_fns:
scl_recluster()
,
scl_redcap()
n <- 100
xy <- matrix (runif (2 * n), ncol = 2)
dmat <- matrix (runif (n^2), ncol = n)
scl <- scl_full (xy, dmat, ncl = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.