theme_mcm_dark: A dark ggplot theme for MCM's personal use

View source: R/theme_mcm.R

theme_mcm_darkR Documentation

A dark ggplot theme for MCM's personal use

Description

A dark ggplot theme for MCM's personal use

Usage

theme_mcm_dark(
  base_family = "fraunces",
  title_family = "fraunces",
  subtitle_family = "fraunces",
  axis_family = "fraunces",
  base_color = "white",
  primary_color = "grey10",
  accent_color = "grey90",
  gridlines = F,
  facet_outlines = F,
  base_size = 10,
  mult1 = 1.2,
  mult2 = 1.4,
  mult3 = 1.5,
  mult4 = 2.25,
  large_lineheight = F
)

Arguments

base_family:

the base font family

title_family:

font to be used for the plot title

subtitle_family:

font to be used for the subtitle

axis_family:

font to be used for the axis titles

base_color:

base color for text and lines

primary_color:

color for primary components, including background

accent_color:

color for accent components

base_size:

base font size

gridlines:

should gridlines be displayed?

facet_outlines:

should facets be outlined?

large_lineheight:

should the subtitle lineheight be increased to 1 to prevent overlaps?

Value

A ggplot theme

Examples

mtcars %>% ggplot(aes(x = wt, y = mpg)) + geom_point() + theme_mcm_dark()

MCMaurer/MCMsBasics documentation built on July 5, 2024, 11:38 p.m.