Description Usage Arguments Value See Also Examples
A helper function for computing the coordinates of cluster centers (typically used in correspondence analysis).
1 | 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.
1 2 3 4 5 6 | 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.