Description Usage Arguments Value Examples
Map enrichment values into two different palettes for enriched/depleted variables
1 | mapEnrichmentToColorsDual(obj, palette.pos, palette.neg, class.col, scale="auto")
|
obj |
an object of type DDGraph |
palette.pos |
the palette to use for enrichment (by default Orange-Red) |
palette.neg |
the palette to use for depletion (by default Purple-Blue) |
class.col |
the colour to use for class labels, if applicable (by default light green) |
scale |
by how much to scale the -log10(p.value) when color coding |
the p values color-coded by convertPvalueToColorIndex() function
1 2 3 4 5 6 7 | ## Not run:
data(mesoBin)
meso <- ncpc(mesoBin$Meso)
# use heat colours for both enrichment and depletion
mapEnrichmentToColorsDual(meso, palette.pos=heat.colors(10), palette.neg=heat.colors(10))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.