ggrateful stealie icon

ggrateful

ggplot2 color palettes pulled from Grateful Dead album covers and tour art — 16 palettes, 5 with continuous gradient variants, drop-in scales for your plots.

# install.packages("devtools") devtools::install_github("RandomForestz/ggrateful")

Palette catalog — 16 total

library(ggplot2)
library(ggrateful)

deadhead(name, n, reverse = FALSE)

Pull raw hex codes from a palette. Omit n to get every color.

deadhead("steal_your_face")
deadhead("steal_your_face", 3)
deadhead("steal_your_face", 3, reverse = TRUE)

scale_fill_deadhead(name, reverse = FALSE, ...)

Discrete fill scale for bar charts, boxplots, and other filled geoms.

ggplot(iris, aes(x = Species, y = Petal.Length, fill = Species)) +
  geom_boxplot() +
  scale_fill_deadhead(name = "dancing_bears") +
  theme_minimal()

scale_color_deadhead(name, reverse = FALSE, ...)

Discrete color scale for points, lines, and other stroked geoms. scale_colour_deadhead() also works.

ggplot(mtcars, aes(x = wt, y = mpg, color = factor(gear))) +
  geom_point(size = 3) +
  scale_color_deadhead(name = "terrapin_station") +
  theme_minimal()

scale_fill_deadhead_c(name, reverse = FALSE, ...) / scale_color_deadhead_c()

Continuous gradient scales, built on scale_*_gradientn(). Only available for palettes with a gradient variant — see the "continuous" badge on each card above.

ggplot(mtcars, aes(x = wt, y = mpg, color = hp)) +
  geom_point(size = 3) +
  scale_color_deadhead_c(name = "best_of") +
  theme_minimal()

display_deadhead(name, labels = TRUE)

Preview a single palette as labeled color swatches.

display_deadhead("bertha")

display_deadhead_all(labels = FALSE)

Preview every palette at once, stacked for side-by-side comparison.

display_deadhead_all()