Palette catalog — 16 total
Setup
library(ggplot2)
library(ggrateful)
Functions
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()