Plot the result of cluster_stats()

plot_cluster_stats(x, highlight = NULL)

Arguments

x

A ClusterSet object.

highlight

a vector with two modalities indicating which clusters to highlight

Value

A ClusterSet object.

Examples

# Set verbosity to 1 to display info messages only.
set_verbosity(1)

# Load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
#> |-- INFO :  Dataset 7871581/files/pbmc3k_medium_clusters was already loaded. 

                       
# 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)          
#> [1] 10