Learn R Programming

easybio (version 1.1.1)

plotGSEA: 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)

Value

ggplot2 object.

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.