meb_GSEAbarplot: meb_GSEAbarplot

View source: R/meb_GSEAbarplot.R

meb_GSEAbarplotR Documentation

meb_GSEAbarplot

Description

Create consistently formatted bar plots from GSEA analysis output. Adapted from a similar function written by Miranda Hunter.

Usage

meb_GSEAbarplot(
  result,
  n_terms,
  metric = "NES",
  fill,
  change_labels = TRUE,
  pval_fill = TRUE
)

Arguments

result

output from fgsea analysis

n_terms

number of terms to plot

metric

which metric to plot - options are "NES" or "pval"

fill

option to fill bar. if F, bars will all be black

change_labels

reformat pathway/component labels - removes "GOCC" or "GOBP" header, removes dashes, changes to lowercase

pval_fill

fills bars based on p value

Value

a ggplot object


mayaeb/mebfunctions documentation built on Sept. 4, 2022, 1:42 a.m.