splitEnrichment: Generate a split violin plot examine enrichment distributions

Description Usage Arguments Value See Also Examples

View source: R/visualizations.R

Description

This function allows to the user to examine the distribution of enrichment across groups by generating a split violin plot.

Usage

1
2
3
4
5
6
7
splitEnrichment(
  enriched,
  x.axis = NULL,
  split = NULL,
  gene.set = NULL,
  colors = c("#0348A6", "#7AC5FF", "#C6FDEC", "#FFB433", "#FF4B20")
)

Arguments

enriched

The output of enrichIt

x.axis

Optional parameter for seperation.

split

The parameter to split, must be binary.

gene.set

The gene set to graph on the y-axis.

colors

The color palette for the ridge plot.

Value

ggplot2 object violin-based distributions of selected gene.set

See Also

enrichIt for generating enrichment scores.

Examples

1
2
3
4
ES2 <- readRDS(url(
"https://ncborcherding.github.io/vignettes/scone_enrichment_results.rds"))
splitEnrichment(ES2, x.axis = "cluster", split = "Type", 
gene.set = "HALLMARK_DNA_REPAIR")

ncborcherding/scone documentation built on Sept. 5, 2020, 1:11 a.m.