align_kmeans {ggalign} | R Documentation |
Split layout by k-means clustering groups.
Description
Split layout by k-means clustering groups.
Usage
align_kmeans(
centers,
iter.max = 10,
nstart = 1,
algorithm = c("Hartigan-Wong", "Lloyd", "Forgy", "MacQueen"),
trace = FALSE,
data = NULL,
set_context = FALSE,
name = NULL
)
Arguments
centers |
either the number of clusters, say |
iter.max |
the maximum number of iterations allowed. |
nstart |
if |
algorithm |
character: may be abbreviated. Note that
|
trace |
logical or integer number, currently only used in the
default method ( |
data |
A matrix, a data frame, or even a simple vector that will be
converted into a one-column matrix. If the It is important to note that all
|
set_context |
A single boolean value indicates whether to set the active
context to current plot. If |
name |
A string of the plot name. Used to switch the active context in
|
Value
A new Align
object.
Examples
ggheatmap(matrix(rnorm(81), nrow = 9)) +
hmanno("t") +
align_kmeans(3L)