ridgeEnrichment: Generate a ridge plot to 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 ridge plot.

Usage

1
2
3
4
5
6
7
8
ridgeEnrichment(
  enriched,
  group = "cluster",
  gene.set = NULL,
  colors = c("#0348A6", "#7AC5FF", "#C6FDEC", "#FFB433", "#FF4B20"),
  facet = NULL,
  add.rug = FALSE
)

Arguments

enriched

The output of enrichIt

group

The parameter to group, displayed on the y-axis.

gene.set

The gene set to graph on the x-axis.

colors

The color palette for the ridge plot.

facet

A parameter to separate the graph.

add.rug

Binary classifier to add a rug plot to the x-axis.

Value

ggplot2 object with ridge-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"))
ridgeEnrichment(ES2, gene.set = "HALLMARK_DNA_REPAIR", group = "cluster", 
facet = "Type", add.rug = TRUE)

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