plot_cluster_stats: Plot the result of cluster_stats()

View source: R/cluster_stats.R

plot_cluster_statsR Documentation

Plot the result of cluster_stats()

Description

Plot the result of cluster_stats()

Usage

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')

                       
# 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)          

dputhier/dbfmcl documentation built on Dec. 20, 2024, 1:59 a.m.