View source: R/visualizations.R
hgEnrichmentPlot | R Documentation |
Create a visualisation of enrichment
hgEnrichmentPlot(fg, bg, m, mset = "all", ...)
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 |
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
tmod-package
, [evidencePlot()]
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.