scale_fill_crayola: Crayola colour

View source: R/ggplot_stuff.R

scale_fill_crayolaR Documentation

Crayola colour

Description

Crayola colour

Usage

scale_fill_crayola(n = 100, ...)

Arguments

n

Number of repeats of the colours, default set to 100

...

Additional parameters to pass to scale_fill_manual.

Examples

library(ggplot2)
d <-
  expand.grid(year = 2000:2010,
              age = 1:10)
d$yc <- as.factor(d$year - d$age)
d$value <- rnorm(nrow(d))
ggplot(d) +
  geom_bar(aes(year, value, fill = yc), stat = "identity") +
  facet_grid(age ~ .) +
  scale_fill_crayola() +
  theme(legend.position = "none")

einarhjorleifsson/fishvice documentation built on Jan. 4, 2024, 8:43 p.m.