Skip to contents

A late 90s ggplot2 theme modeled on the Goosebumps books: a black background, a slime green frame and title, a dark purple plot area, slime green, purple, pale green, orchid, and moss marks, and a Trattatello title.

Usage

theme_goosebumps(
  base_size = 15,
  base_family = register_font("Arial", "Arial.ttf", "Arial Bold.ttf"),
  title_family = register_font("Trattatello", "Trattatello.ttf"),
  mode = c("dark", "light")
)

Arguments

base_size

Base font size. Defaults to 15.

base_family

Base font family. Defaults to Arial when it's available on the system, otherwise "sans".

title_family

Title font family. Defaults to Trattatello when it's available, otherwise "sans".

mode

"dark" (the default) or "light".

Value

A ggplot2 theme object.

Details

Use mode = "light" for a light background with darker text and marks.

Examples

library(ggplot2)
ggplot(data.frame(x = c("a", "b", "b")), aes(x = x, fill = x)) +
  geom_bar() +
  labs(title = "Goosebumps") +
  theme_goosebumps(base_family = "sans", title_family = "sans")