Description Usage Arguments Value See Also
View source: R/QuickShiftClusters.R
Clustering from a QuickShift graph
1 | QuickShiftClusters(g, n, graph = FALSE, id_by_pop = TRUE, decreasing = TRUE)
|
g |
a QuickShift graph resulting from the QuickShiftAlgorithm function. |
n |
desired number of clusters. |
graph |
logical value indicating whether the QuickShift graph should be part of the returned results (default = FALSE, no). |
id_by_pop |
logical value controlling if cluster identifiers should follow the order of population sizes (default = TRUE, yes). |
decreasing |
logical value indicating if population sizes should be in decreasing
(default = TRUE, yes) or increasing order, when the argument
|
This function returns a list with the following elements:
membership |
vector of integers in [1, |
csizes |
number of observations in each cluster. |
nclust |
number of clusters. |
And optionally:
graph |
the QuickShift graph (see QuickShiftAlgorithm). |
QuickShift, MatchClusters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.