The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

crayons

CRAN status crayons status badge 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.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.