plot_enrich | R Documentation |
Plot k/K for hypergeo enrichment
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
)
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 |
ggplot2 object
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.