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")


Search within the patchPlot package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.