Learn R Programming

multicolor (version 0.1.7)

insert_rainbow: Insert Rainbow

Description

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

Usage

insert_rainbow(clr)

Value

A character vector of color names.

Arguments

clr

(character) A vector of one or more colors.

Examples

Run this code

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

Run the code above in your browser using DataLab