colorize | R Documentation |
Create vector of color from vector
colorize(x, colors = c("#440154", "#21908C", "#FDE725"))
x |
A numeric, character or factor object. |
colors |
A character string of colors (ordered) to colorize |
colorize(runif(10))
colorize(LETTERS[rbinom(20, 5, 0.5)], c("#FF0000", "#00FFFF"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.