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"))

multicolor documentation built on March 7, 2023, 7:30 p.m.