insert_rainbow: Insert Rainbow

View source: R/utils.R

insert_rainbowR Documentation

Insert Rainbow

Description

Take the string "rainbow" and replace it with c("red", "orange", "yellow", "green", "blue", "purple")

Usage

insert_rainbow(clr)

Arguments

clr

(character) A vector of one or more colors.

Value

A character vector of color names.

Examples


insert_rainbow("rainbow")
insert_rainbow(c("lightsteelblue", "rainbow", "lightsalmon"))

aedobbyn/multicolor documentation built on Jan. 11, 2023, 12:15 a.m.