plotEnrichment: Plots GSEA enrichment plot. For more flexibility use...

View source: R/plot.R

plotEnrichmentR Documentation

Plots GSEA enrichment plot. For more flexibility use 'plotEnrichmentData' function.

Description

Plots GSEA enrichment plot. For more flexibility use 'plotEnrichmentData' function.

Usage

plotEnrichment(pathway, stats, gseaParam = 1, ticksSize = 0.2)

Arguments

pathway

Gene set to plot.

stats

Gene-level statistics.

gseaParam

GSEA parameter.

ticksSize

width of vertical line corresponding to a gene (default: 0.2)

Value

ggplot object with the enrichment plot.

Examples

data(examplePathways)
data(exampleRanks)
## Not run: 
plotEnrichment(examplePathways[["5991130_Programmed_Cell_Death"]],
               exampleRanks)

## End(Not run)

ctlab/fgsea documentation built on Oct. 10, 2024, 10:31 a.m.