View source: R/gsea_waterfall_plot.R
gsea_waterfall_plot | R Documentation |
double waterfall plot of the chosen top and bottom pathways by NES from GSEA. Optional labelling of pathways of interest.
gsea_waterfall_plot(
gsea_results,
pathways_to_highlight,
labels_for_plot = NULL,
n_terms = 250,
transparent = T,
col_label = NULL
)
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. |
double waterfall plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.