get_color2 | R Documentation |
This function generates color ramps based on an input color. The colors will range from two shades lighter to two shades darker than the original color, based on the color gap specified
get_color2(col_name, col_gap = 10, test_plot = FALSE)
col_name |
A string indicating a color for the ramp |
col_gap |
A number indicating the size of the gap between colors |
test_plot |
Whether to plot colors returned by the function |
A vector of colors forming a color ramp based on the input name and numeric gap.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.