Skip to contents

A ggplot2 theme styled to resemble old parchment and ink, giving plots a vintage, manuscript-like appearance.

Usage

theme_cole(
  base_size = 12,
  base_family = "sans",
  remove_grid = FALSE,
  dark = FALSE,
  transparent = FALSE
)

Arguments

base_size

Base text size. Default 12.

base_family

Base font family. Default "sans".

remove_grid

Logical. If TRUE, removes all grid lines.

dark

Logical. If TRUE, plot is transformed to a dark theme.

transparent

Logical. If TRUE, plot background is transparent.

Value

A ggplot2 theme object that can be added to ggplot plots.

Details

This theme adjusts panel backgrounds, grid lines, and text colors to evoke the look of old parchment and handwritten ink. Works with ggplot2 plots.

Examples

library(ggplot2)
library(trashpanda)
library(palmerpenguins)

ggplot(penguins, aes(flipper_length_mm, bill_length_mm, fill = species, group = species)) +
  geom_point(shape = 21) +
  labs(title = "Flipper Length vs. Bill Length",
       subtitle = "Lorem ipsum") +
  theme_cole(remove_grid = TRUE, dark = TRUE) +
  add_caption_cwb() 
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_point()`).

  
  
ggplot(penguins, aes(flipper_length_mm, bill_length_mm, fill = species, group = species)) +
  geom_point(shape = 21) +
  labs(title = "Flipper Length vs. Bill Length",
       subtitle = "Lorem ipsum") +
  theme_cole(remove_grid = FALSE) +
  add_caption_cwb() 
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_point()`).