cluster_number: cluster_number

Description Usage Arguments Value See Also Examples

View source: R/CA_number_clusters.R

Description

Produce one referenced number of clusters which determined by kmean/pam/clara/fanny/hcut clustering.

Usage

1
2
3
4
5
6
7
cluster_number(
  Exp,
  k.max,
  FUNcluster = c(kmeans, pam, clara, fanny, hcut),
  scale = TRUE,
  ...
)

Arguments

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().

Value

Two plots. Indicating number of clusters by using Elbow method and Silhouette method.

See Also

fviz_nbclust

Examples

1

FanqianYin/omicstoolkits documentation built on Jan. 3, 2022, 5:57 p.m.