View source: R/PlotClustersByTrt.R
PlotClustersByTrt | R Documentation |
Given a Seurat object and treatment variable, compare clusters between levels of the treatment
PlotClustersByTrt( cluster_freqs, seed = 1, jitter.width = 0.4, dodge.width = 0.55, pt.size = 0.5, base_size = 16 )
cluster_freqs |
dataframe of cluster frequencies (produced by ComputeClustersByTrt function) |
pbmc_small$trt <- sample(c('drug', 'control'), ncol(pbmc_small), replace=TRUE) pbmc_small$genotype <- sample(c('1', '2', '3'), ncol(pbmc_small), replace=TRUE) freq <- ComputeClustersByTrt(pbmc_small, trt, genotype) PlotClustersByTrt(freq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.