revgray | 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
grDevices::gray()
x <- matrix(rnorm(100), ncol=10)
image(x, col=revgray())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.