centers_ca | R Documentation |
A helper function for computing the coordinates of cluster centers (typically used in correspondence analysis).
centers_ca(x, clusters, freq)
x |
A numeric matrix. |
clusters |
A clustering of the row levels of |
freq |
An optional vector of frequency counts for the row levels of |
A matrix containing the coordinates of the cluster centers.
freq_ca
.
SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8",
stringsAsFactors = FALSE)
sca_SndT_Fra <- fast_sca(SndT_Fra)
kcl_SndT_Fra <- kmeans(sca_SndT_Fra$pos1, centers = 7)
centers_ca(sca_SndT_Fra$pos1, clusters = kcl_SndT_Fra, freq = freq_ca(SndT_Fra[, 1]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.