theme_simpsons: The Simpsons theme

View source: R/theme_simpsons.R

theme_simpsonsR Documentation

The Simpsons theme

Description

The Simpsons theme, Recommended font: "Akbar"

Usage

theme_simpsons(
  text.font = NULL,
  title.font = NULL,
  legend.font = NULL,
  title.size = 18,
  text.size = 14,
  subtitle.size = 12,
  axis.title.size = 14,
  axis.text.size = 10,
  legend.title.size = 10,
  legend.text.size = 9,
  title.color = "#FFD235",
  subtitle.color = "#fee8c8",
  text.color = "#fee8c8",
  axis.title.color = "#fee8c8",
  axis.text.color = "#fee8c8",
  legend.title.color = "#ffffff",
  legend.text.color = "#ffffff",
  legend.position = "bottom",
  ticks = FALSE
)

Arguments

text.font

text font, Default: NULL

title.font

title font, Default: NULL

legend.font

legend font, Default: NULL

title.size

title font size, Default: 18

text.size

text font size, Default: 14

subtitle.size

subtitle font size, Default: 12

axis.title.size

axis title font size, Default: 14

axis.text.size

axis text font size, Default: 10

legend.title.size

legend title font size, Default: 10

legend.text.size

legend text font size, Default: 9

title.color

title color, Default: "#FFD235"

subtitle.color

subtitle.color, Default: "#fee8c8"

text.color

text color, Default: "#fee8c8"

axis.title.color

axis title color, Default: "#fee8c8"

axis.text.color

axis text color, Default: "#fee8c8"

legend.title.color

legend title color, Default: "#ffffff"

legend.text.color

legend text color, Default: "#ffffff"

legend.position

legend position, Default: "bottom"

ticks

add axis ticks, Default: FALSE

Details

In part inspired by ‘@nathancunn'’s blog posts on The Simpsons!

See Also

[ggplot2::theme]

Examples

library(ggplot2)

ggplot(airquality, aes(x = Day, y = Temp,
     group = as.factor(Month), color = as.factor(Month))) +
     geom_point(size = 2.5) +
     scale_color_simpsons() +
     theme_simpsons()

tvthemes documentation built on May 29, 2024, 12:03 p.m.