mapEnrichmentToColorsDual: Map enrichment values into two different palettes for...

Description Usage Arguments Value Examples

View source: R/plot-colour.R

Description

Map enrichment values into two different palettes for enriched/depleted variables

Usage

1
mapEnrichmentToColorsDual(obj, palette.pos, palette.neg, class.col, scale="auto")

Arguments

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

Value

the p values color-coded by convertPvalueToColorIndex() function

Examples

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)

ddgraph documentation built on Nov. 17, 2017, 10:50 a.m.