plot_enrich: Plot k/K for hypergeo enrichment

View source: R/plot_enrich.R

plot_enrichR Documentation

Plot k/K for hypergeo enrichment

Description

Plot k/K for hypergeo enrichment

Usage

plot_enrich(
  enrich,
  fdr_cutoff = 0.2,
  fdr_colors = c(0.01, 0.05, 0.1, 0.2),
  show_overlap = TRUE,
  fdr.cutoff = NULL,
  fdr.colors = NULL,
  show.overlap = NULL
)

Arguments

enrich

Data frame output by SEARchways::BIGprofiler or SEARchways::BIGenrichr

fdr_cutoff

Numeric. Maximum FDR to plot. Default is 0.2

fdr_colors

Numeric vector. Cutoffs for color groups. Default is c(0.01, 0.05, 0.1, 0.2)

show_overlap

Logical if should show overlap across all facets even if some missing (TRUE) or give each facet it's own axis labels (FALSE). Default is TRUE

fdr.cutoff

Deprecated form of fdr_cutoff

fdr.colors

Deprecated form of fdr_colors

show.overlap

Deprecated form of show_overlap

Value

ggplot2 object

Examples

library(SEARchways)
library(dplyr)
#Run enrichment
gene_list <- list(HRV1 = names(example.gene.list[[1]]),
                  HRV2 = names(example.gene.list[[2]]))
enrich <- BIGprofiler(gene_list, ID="ENSEMBL", category="H")

#Plot
plot_enrich(enrich, fdr_cutoff = 0.5, fdr_colors = c(0.05, 0.5))

BIGslu/BIGpicture documentation built on Oct. 14, 2024, 9:30 p.m.