reds: Create a vector of reds

View source: R/colorVectors.R

redsR Documentation

Create a vector of reds

Description

reds is useful for getting a set of reds from pink to brick for graphs.

Usage

reds(ncolors, shade = "regular")

Arguments

ncolors

number of colors desired

shade

the shade of colors to use, which can be "regular" (default), "darker", or "lighter"

Value

a character vector of colors

Examples

# Create a set of 10 reds. 
reds(10)

# Try using scales::show_col() to visualize the colors, ex:
scales::show_col(reds(10))
scales::show_col(reds(10, shade = "lighter"))


shirewoman2/Consultancy documentation built on Feb. 18, 2025, 10 p.m.