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", "lighter", or "muted" (although "muted" isn't working well atm and it just making everything the same color)

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 June 1, 2025, 6:05 p.m.