Description Usage Arguments Examples
Create vector of color from vector
1 2 3 4 5 | ec_colorize(
x,
colors = c("#c23531", "#2f4554", "#61a0a8", "#d48265", "#91c7ae", "#749f83",
"#ca8622", "#bda29a", "#6e7074", "#546570", "#c4ccd3")
)
|
x |
A numeric, character or factor object. |
colors |
A character string of colors (ordered) to colorize 'x' |
1 2 3 | ec_colorize(runif(10))
ec_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.