x2rgb | R Documentation |
create rgb colors from a numeric vector
x2rgb(x, breaks = NULL, u = FALSE, reverse = FALSE, ...)
x |
numeric vector |
breaks |
non decreasing numeri vector |
u |
logical. Uses the rank of |
reverse |
logic. If FALSE colors are blue for lower
values of |
... |
additional parameters passed to |
'transparent' if NA or the output of the
rgb
function
'transparent' is returned for NA
rgb
plot(0:5, pch=19, col=x2rgb(0:5))
plot(0:5, pch=19, col=x2rgb(0:5, c(0,3,6)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.