Learn R Programming

cape (version 3.1.2)

get_color2: 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)

Value

A vector of colors forming a color ramp based on the input name and numeric gap.

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