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
)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)
#>
#> Attaching package: ‘palmerpenguins’
#> The following objects are masked from ‘package:datasets’:
#>
#> penguins, penguins_raw
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(show_axis_lines = c("bottom", "left"), remove_grid = TRUE, dark = TRUE) +
add_caption_cwb()
#> Error in theme_cole(show_axis_lines = c("bottom", "left"), remove_grid = TRUE, dark = TRUE): unused argument (show_axis_lines = c("bottom", "left"))
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(show_axis_lines = c("bottom", "left"), remove_grid = FALSE) +
add_caption_cwb()
#> Error in theme_cole(show_axis_lines = c("bottom", "left"), remove_grid = FALSE): unused argument (show_axis_lines = c("bottom", "left"))
