View source: R/meb_GSEAbarplot.R
meb_GSEAbarplot | R Documentation |
Create consistently formatted bar plots from GSEA analysis output. Adapted from a similar function written by Miranda Hunter.
meb_GSEAbarplot( result, n_terms, metric = "NES", fill, change_labels = TRUE, pval_fill = TRUE )
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 |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.