plotGSEA: Visualization of GSEA Result from 'fgsea::fgsea()'

View source: R/ora.R

plotGSEAR Documentation

Visualization of GSEA Result from fgsea::fgsea()

Description

The plotGSEA function visualizes the results of a GSEA (Gene Set Enrichment Analysis) using data from the fgsea package. It generates a composite plot that includes an enrichment plot and a ranked metric plot.

Usage

plotGSEA(fgseaRes, pathways, pwayname, stats, save = FALSE)

Arguments

fgseaRes

A data table containing the GSEA results from the fgsea package.

pathways

A list of all pathways used in the GSEA analysis.

pwayname

The name of the pathway to visualize.

stats

A numeric vector representing the ranked statistics.

save

A logical value indicating whether to save the plot as a PDF file. Default is FALSE.

Value

ggplot2 object.


easybio documentation built on Sept. 17, 2024, 1:08 a.m.