plot.gsea: Present Gene Set Enrichment Analyses

View source: R/plot.gsea.R

plot.gseaR Documentation

Present Gene Set Enrichment Analyses

Description

Print and plot GSEA output.

Usage

## S3 method for class 'gsea'
plot(x, xlab='Rank', ylab='Running Enrichment Score', col.line='green', 
	col.indicator='red', indicator.bar=c('score','fixed'), ...)
## S3 method for class 'gsea'
print(x, ...)

Arguments

x

a gsea object as generated from GSEA.

xlab

a title for the x axis.

ylab

a title for the y axis.

col.line

color for running score line.

col.indicator

color for gene tag.

indicator.bar

denote whether the indicator bar should show the running score or a fixed height.

...

additional parameters for plot.

Details

See function GSEA for object gsea.

See Also

GSEA

Examples

#example usage
#create a random data set
n=10000
x=data.frame(ID=paste0('Gene',1:n), strength=sort(rnorm(n,0,1)), stringsAsFactors=FALSE)
fit1=GSEA(x=x, go=paste0('Gene',sample(n,100)))
plot(fit1)

mw201608/GOtest documentation built on May 3, 2023, 11:49 a.m.