get_color2: Generate color ramp

View source: R/get_color2.R

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


cape documentation built on May 29, 2024, 5:11 a.m.