plot.ES: GSEA Enrichment Plots

Description Usage Arguments Value Examples

View source: R/plot.ES.R

Description

The plot.ES function creates a pdf of enrichment plots obtained from the GSEA analysis given a list of ggplot objects and a character by which to name the pdf. The pdf is formatted to contain 4 graphs per page and save to the working directory.

Usage

1
2
## S3 method for class 'ES'
plot(list.of.plots = "", plotname = "")

Arguments

list.of.plots

A list of ggplot objects containing the necessary information for an enrichment plot using ggplot2.

plotname

A character by which to name and save the file with the ES plots.

Value

A pdf containing the enrichment plots for all gene sets (with more than 2 genes in a gene set) in a database, saved as the value given plotname.

Examples

1
2
3
 
plot.ES(list.of.plots=pp$plots,plotname="GSEA_plots")
plot.ES(list.of.plots=analaysis$plots,plotname="results_of_analysis")

kelsiereinaltt/GSEAplot documentation built on Aug. 9, 2021, 2:58 a.m.