powered by
colorPlot(x, zeroColor, oneColor)
dat <- matrix(runif(16), nrow=4) dat <- as.data.frame(dat) rownames(dat) <- colnames(dat) <- c("A", "B", "C", "D") colorPlot(dat, "green", "red")
Run the code above in your browser using DataLab