Description Usage Arguments Examples
This function performs a k-means clustering analysis on a numerical data matrix with a specified k value. It assigns samples into k clusters and outputs a PCA biplot in which each sample is colored according to cluster.
1 | pca.cluster(x, pca, k)
|
x |
input data matrix or data frame (numerical) |
pca |
principal component object returned from the run.pca() function |
k |
optimal k value (numerical) |
1 | pca.cluster(data, data_pca, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.