plot_fun_enrich: Plot the results of the BP, CC, MF and/or REACTOME enrichment...

Description Usage Arguments Value Author(s) Examples

View source: R/func_enrich.R

Description

Given the output of fun_enrich, generates a bar plot of the -log10 of the p-values for one or all analysed aspects.

Usage

1
2
plot_fun_enrich(enr, aspect = "ALL", benjamini = FALSE, top = 5,
  char_per_line = 80)

Arguments

enr

listr; The list of data frames resulting from fun_enrich.

aspect

character; One of ALL, BP, CC, MF or REACTOME.

benjamini

logical; If TRUE, plot corrected p-values.

top

integer; The number of top enriched terms to consider.

char_per_line

integer; Controls the number of characters per line for the term names in the plots.

Value

A ggplot object.

Author(s)

Gregorio Alanis-Lobato galanisl@uni-mainz.de

Examples

1
2
3
4
5
6
7
# Use the included lists of disease genes and genes associated with metabolic
# disorders as background and genes of interest, respectively
analysis <- fun_enrich(gene.list = metabolic, background = disease.genes, 
                      id.type = "ENTREZID", benjamini = TRUE)
# Plot the 
vis <- plot_fun_enrich(enr = analysis, aspect = "ALL", benjamini = TRUE, 
                       top = 5, char_per_line = 80)

galanisl/FunEnrich documentation built on May 5, 2019, 3:49 a.m.