dark_plot_theme: A dark ggplot2 theme suitable for slides

Description Usage Arguments Value

View source: R/plotting.R

Description

Add this to your ggplots for a light-on-dark theme, suitable for matching to light-on-dark slides. Or use the chunk option dark_theme=T.

Usage

1
2
3
4
5
6
dark_plot_theme(
  base_size = 9,
  base_family = "",
  dark = "gray10",
  light = "white"
)

Arguments

base_size

general text-size parameter in points (??)

base_family

font family; to be overriden in TikZ graphics

dark

main background color (should probably match slide background). Some intermediate colors will be interpolated between this and light.

light

main foreground color (should probably match slide text)

Value

a theme object that can be added to a plot. Override settings by adding (or %replace+ing) another theme() call.


agoldst/scuro documentation built on Nov. 5, 2021, 3:44 a.m.