View source: R/1.getClusters.R
getClusters | R Documentation |
Determine Optimal Clusters for Gene Expression or Pseudotime Data
getClusters(obj = NULL, ...)
obj |
A data object representing the gene expression data or pseudotime data:
|
... |
Additional arguments passed to the preprocessing function
|
A ggplot
object visualizing the Elbow plot, where:
The x-axis represents the number of clusters tested.
The y-axis represents the WSS for each cluster number.
The optimal cluster number can be visually identified at the "elbow point," where the reduction in WSS diminishes sharply.
a ggplot.
JunZhang
The getClusters
function identifies the optimal number of clusters for a given data object.
It supports multiple input types, including gene expression matrices and objects such as
cell_data_set
. The function implements the Elbow method to evaluate within-cluster
sum of squares (WSS) across a range of cluster numbers and visualizes the results.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.