Skip to contents

A ggplot2 theme built from the :CueCat barcode scanner: a pale paper background, a putty frame, a red title, red, ink, LED orange, and putty marks, and a Marker Felt title.

Usage

theme_cuecat(
  base_size = 15,
  base_family = register_font("Arial", "Arial.ttf", "Arial Bold.ttf"),
  title_family = register_font("Marker Felt", "MarkerFelt.ttc", dir =
    "/System/Library/Fonts")
)

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 Marker Felt when it's available, otherwise "sans".

Value

A ggplot2 theme object.

Examples

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