plotEnrichment: Plots GSEA enrichment plot.

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Plots GSEA enrichment plot.

Usage

1
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

1
2
3
4
5
6
7
data(examplePathways)
data(exampleRanks)
## Not run: 
plotEnrichment(examplePathways[["5991130_Programmed_Cell_Death"]],
               exampleRanks)

## End(Not run)

Example output

Loading required package: Rcpp

fgsea documentation built on Nov. 8, 2020, 5:22 p.m.