View source: R/cluster_stats.R
plot_cluster_stats | R Documentation |
Plot the result of cluster_stats()
plot_cluster_stats(x, highlight = NULL)
x |
A |
highlight |
a vector with two modalities indicating which clusters to highlight |
A ClusterSet
object.
# Set verbosity to 1 to display info messages only.
set_verbosity(1)
# Load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
# Compute some statistics about the clusters
df <- cluster_stats(pbmc3k_medium_clusters)
plot_cluster_stats(df)
plot_cluster_stats(df, highlight=df$size > 8)
# Select the cluster of interest
pbmc3k_medium_clusters_filtered <- pbmc3k_medium_clusters[df$size > 8, ]
nclust(pbmc3k_medium_clusters_filtered)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.