revgray {broman} | R Documentation |
Calls grDevices::gray()
then base::rev()
revgray(n = 256, ...)
n |
Number of colors. |
... |
Passed to |
There's not much to this. It's just gray((n:0)/n))
Vector of colors, from white to black
x <- matrix(rnorm(100), ncol=10)
image(x, col=revgray())