colorPlot: colorPlot

Description Usage Arguments Value Author(s) References See Also Examples

Description

Plot a data.frame with color cells.

Usage

1
colorPlot(x, zeroColor, oneColor)

Arguments

x

data.frame to plot, taking values in [0,1] : the associated colors are then taken on the gradient from zeroColor to oneColor.

zeroColor

the "zero bound" color, in any valid R color format (e.g. "yellow", "#00FF00", ...)

oneColor

the "one bound" color, in any valid R color format (e.g. "yellow", "#00FF00", ...)

Value

NULL

Author(s)

Pierrick Bruneau

References

Inspired from myImagePlot (http://www.phaget4.org/R/image_matrix.html)

See Also

getInterRGB

Examples

1
2
3
4
dat <- matrix(runif(16), nrow=4)
dat <- as.data.frame(dat)
rownames(dat) <- colnames(dat) <- c("A", "B", "C", "D")
colorPlot(dat, "green", "red")

patchPlot documentation built on May 1, 2019, 8:20 p.m.