PlotClustersByTrt: Given a Seurat object and treatment variable, compare...

View source: R/PlotClustersByTrt.R

PlotClustersByTrtR Documentation

Given a Seurat object and treatment variable, compare clusters between levels of the treatment

Description

Given a Seurat object and treatment variable, compare clusters between levels of the treatment

Usage

PlotClustersByTrt(
  cluster_freqs,
  seed = 1,
  jitter.width = 0.4,
  dodge.width = 0.55,
  pt.size = 0.5,
  base_size = 16
)

Arguments

cluster_freqs

dataframe of cluster frequencies (produced by ComputeClustersByTrt function)

Examples

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)


daskelly/signac documentation built on Feb. 12, 2023, 11:36 p.m.