get_color2 {cape} | R Documentation |
Generate color ramp
Description
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
Usage
get_color2(col_name, col_gap = 10, test_plot = FALSE)
Arguments
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 |
Value
A vector of colors forming a color ramp based on the input name and numeric gap.
[Package cape version 3.1.2 Index]