Learn R Programming

broman (version 0.94)

crayons: Crayon colors

Description

Vector of colors corresponding to Crayola crayons

Usage

crayons(color_names = NULL, ..., notexact = FALSE)

Value

Vector of named RGB colors

Arguments

color_names

Optional vector of color names; can be partial matches.

...

Additional optional color names

notexact

If TRUE, find all partial matches to any of the color names provided, ignoring case.

References

https://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors

See Also

plot_crayons(), brocolors()

Examples

Run this code
crayons("Blue")
crayons(c("Purple Heart", "Burnt Sienna"))
crayons("Purple Heart", "Burnt Sienna")
crayons("Purple") # returns nothing because no exact match
crayons("Purple", notexact=TRUE) # returns all the purples
crayons("Blue", notexact=TRUE) # returns all the blues
crayons("Blue", "Purple", notexact=TRUE) # returns everything with either blue or purple

Run the code above in your browser using DataLab