scale_fill_crayola: Crayola colour

Description Usage Arguments Examples

View source: R/scale_fill_crayola.R

Description

Crayola colour

Usage

1

Arguments

n

Number of repeats of the colours, default set to 100

...

Additional parameters to pass to scale_fill_manual.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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/ggmisc documentation built on Sept. 28, 2019, 12:58 a.m.