plot_overallGSEA: plot_overallGSEA

View source: R/overallGSEA.R

plot_overallGSEAR Documentation

plot_overallGSEA

Description

This function would generate bar plot for GSEA results

Usage

plot_overallGSEA(gsea_res, x = "Description", y = "NES")

Arguments

gsea_res

Default dataset to use for plot.

x

Default x of aesthetic mappings to use for plot. Generally, it is Description for enrichment pathway.

y

Default y of aesthetic mappings to use for plot. Generally, it is NES.

Value

a ggplot2 object

Examples

## Not run: 
 data(geneList, package="DOSE")
 geneChangeList <- sort(geneList, decreasing = TRUE)
 ego <- gseGO(geneChangeList, ont="BP",OrgDb=org.Hs.eg.db,eps=0)
 ego <- setReadable(ego, OrgDb =org.Hs.eg.db)
 data <- ego[127:147,1:9]
 print(overallGSEA(data,"Description","NES"))
 
## End(Not run)

Feng-Zhang/RNAseqFlow documentation built on Sept. 10, 2022, 7:13 a.m.