Learn R Programming

tmod (version 0.19)

hgEnrichmentPlot: 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
module 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

Run this code
set.seed(123)
data(tmod)
bg <- tmod$GENES$ID
fg <- sample( c(tmod$MODULES2GENES[["LI.M127"]], bg[1:1000]))
hgEnrichmentPlot(fg, bg, "LI.M127")

Run the code above in your browser using DataLab