Description Usage Arguments Value Examples
View source: R/create_color_ramp.R
Create and visualise a color ramp
1 2 3 4 5 | create_color_ramp(
col_range = c("red", "yellow", "springgreen", "royalblue"),
n = 30,
plot = TRUE
)
|
col_range |
Colors to transition from/to |
n |
Number of colors to create |
plot |
whether to plot the colors |
A visual of colors and a character vector of colors
1 | create_color_ramp(c('#a4eaff', '#0a5090'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.