hgEnrichmentPlot: Create a visualisation of enrichment

View source: R/visualizations.R

hgEnrichmentPlotR Documentation

Create a visualisation of enrichment

Description

Create a visualisation of enrichment

Usage

hgEnrichmentPlot(fg, bg, m, mset = "all", ...)

Arguments

fg

the foreground set of genes

bg

the background set of genes (gene universe)

m

gene set for which the plot should be created

mset

Which module set to use (see tmodUtest for details)

...

additional parameters to be passed to the plotting function

Details

This functions creates a barplot visualizing the enrichment of a module in the foreground (fg) set as compared to the background (bg) set. It is the counterpart

See Also

tmod-package, [evidencePlot()]

Examples

set.seed(123)
data(tmod)
bg <- tmod$gv
fg <- getGenes("LI.M127", as.list=TRUE)[[1]]
fg <- sample(c(fg, bg[1:100]))
hgEnrichmentPlot(fg, bg, "LI.M127")

tmod documentation built on March 31, 2023, 9 p.m.