get_color2: Generate color ramp

Description Usage Arguments Value

View source: R/get_color2.R

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

1
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.


cape documentation built on Feb. 10, 2021, 5:06 p.m.