Color Palettes from Crayon Boxes

Provides color palettes based on crayon colors since the early 1900s. Colors are based on various crayon colors, sets, and promotional palettes, most of which can be found at < https://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors>. All palettes are discrete palettes and are not necessarily color-blind friendly. Provides scales for 'ggplot2' for discrete coloring.


crayons

CRANstatus crayons statusbadge Lifecycle:stable R-CMD-check

crayons provides crayon-based color palettes. For nostalgic uses, consider combining with ggrough or roughsf.

These palettes are not necessarily (and unlikely to be) color-blind friendly. For public-facing work, consider a color-blind friendly package, such as Cory McCartan’s wacolors.

Installation

crayons is available on CRAN and can be installed using:

install.packages('crayons')

You can also install the development version of crayons from GitHub with:

remotes::install_github('christopherkenny/crayons')

Example

crayons provides basic ggplot2 scales for fill and color (also aliased as colour).

library(ggplot2)
library(crayons)

mpg |>
  ggplot() + 
  geom_point(aes(displ, hwy, colour = class)) + 
  scale_color_crayons(palette = 'original')

crayons has many palettes, based on current and long-gone crayon packs.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("crayons")

0.0.4 by Christopher T. Kenny, a year ago


https://github.com/christopherkenny/crayons, http://christophertkenny.com/crayons/


Report a bug at https://github.com/christopherkenny/crayons/issues


Browse source code at https://github.com/cran/crayons


Authors: Christopher T. Kenny [aut, cre] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports ggplot2, grDevices, palette


See at CRAN