gsea_waterfall_plot: gsea_waterfall_plot

View source: R/gsea_waterfall_plot.R

gsea_waterfall_plotR Documentation

gsea_waterfall_plot

Description

double waterfall plot of the chosen top and bottom pathways by NES from GSEA. Optional labelling of pathways of interest.

Usage

gsea_waterfall_plot(
  gsea_results,
  pathways_to_highlight,
  labels_for_plot = NULL,
  n_terms = 250,
  transparent = T,
  col_label = NULL
)

Arguments

gsea_results

your GSEA results dataframe, should have one column called "pathway" and another called "NES", additional columns are fine too.

pathways_to_highlight

a character vector with the exact names of the pathways you want highlighted on your waterfall plot in red circles.

labels_for_plot

optional: a character vector with the exact names of the pathways you want labelled as text on your plot.

n_terms

the number of terms to be plotted.

transparent

if you want the non-labelled points to be transparent - looks better but causes issues with exporting.

col_label

colour to label points of interest with.

Value

double waterfall plot.


mvhunter1/mvhfunctions documentation built on May 31, 2024, 3:36 p.m.