chartreuse: Create a vector of yellow-greens

View source: R/colorVectors.R

chartreuseR Documentation

Create a vector of yellow-greens

Description

chartreuse is useful for getting a set of colors from chartreuse to forest green for graphs. These are from the RColorBrewer package, color set "YlGn", just to give credit where it's due, but they can be any number in length rather than only up to 9 colors.

Usage

chartreuse(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"

Value

a character vector of colors

Examples

# Create a set of 10 yellows to chartreuses to greens.
chartreuse(10)

# Try using scales::show_col() to visualize the colors, ex:
scales::show_col(chartreuse(10))


shirewoman2/Consultancy documentation built on June 1, 2025, 6:05 p.m.