Description Usage Arguments Value See Also Examples
View source: R/CA_number_clusters.R
Produce one referenced number of clusters which determined by kmean/pam/clara/fanny/hcut clustering.
1 2 3 4 5 6 7 |
Exp |
data.frame or matrix with rownames represent samples, colnames represent features like proteins or genes. |
k.max |
maximum numbers of cluster. |
FUNcluster |
Clustering method. Type without quote mark. Chose one of following methods: kmean, pam, clara, fanny, hcut. |
scale |
Logical. whether input Exp should be scaled. |
... |
Any parameter passed to fviz_nbclust(). |
Two plots. Indicating number of clusters by using Elbow method and Silhouette method.
1 | cluster_number(iris[-5], 5, kmeans)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.