This function creates a plot of enrichment scores for a specified pathway. It provides a visual representation of the enrichment score (ES) along with the ranks and ticks indicating the GSEA walk length.
plotEnrichment2(pathways, pwayname, stats, gseaParam = 1, ticksSize = 0.2)
A ggplot object representing the enrichment plot.
A list of pathways.
The name of the pathway for which to plot enrichment.
A rank vector obtained from the 'fgsea' package.
The GSEA walk length parameter. Default is 1.
The size of the tick marks. Default is 0.2.