fgsea::fgsea()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.
plotGSEA(fgseaRes, pathways, pwayname, stats, save = FALSE)ggplot2 object.
A data table containing the GSEA results from the fgsea package.
A list of all pathways used in the GSEA analysis.
The name of the pathway to visualize.
A numeric vector representing the ranked statistics.
A logical value indicating whether to save the plot as a PDF file. Default is FALSE.