KMEANS {Momocs} | R Documentation |
KMEANS on PCA objects
Description
A very basic implementation of k-means. Beware that morphospaces are calculated so far for the 1st and 2nd component.
Usage
KMEANS(x, ...)
## S3 method for class 'PCA'
KMEANS(x, centers, nax = 1:2, pch = 20, cex = 0.5, ...)
Arguments
x |
PCA object |
... |
additional arguments to be passed to kmeans |
centers |
numeric number of centers |
nax |
numeric the range of PC components to use (1:2 by default) |
pch |
to draw the points |
cex |
to draw the points |
Value
the same thing as kmeans
See Also
Other multivariate:
CLUST()
,
KMEDOIDS()
,
LDA()
,
MANOVA_PW()
,
MANOVA()
,
MDS()
,
MSHAPES()
,
NMDS()
,
PCA()
,
classification_metrics()
Examples
data(bot)
bp <- PCA(efourier(bot, 10))
KMEANS(bp, 2)
[Package Momocs version 1.4.1 Index]