Skip to contents

A large-font theme with a white/transparent background suited to light-background PowerPoint slides (e.g. AATS-style). Removes grid lines and panel borders.

Usage

hv_theme_light_ppt(
  base_size = 32,
  base_family = "",
  header_family = NULL,
  base_line_size = base_size/22,
  base_rect_size = base_size/22,
  ink = "black",
  paper = "transparent",
  accent = "#3366FF"
)

theme_light_ppt(
  base_size = 32,
  base_family = "",
  header_family = NULL,
  base_line_size = base_size/22,
  base_rect_size = base_size/22,
  ink = "black",
  paper = "transparent",
  accent = "#3366FF"
)

Arguments

base_size

Base font size in points. Default 32.

base_family

Base font family. Default "" (device default).

header_family

Font family for headers, or NULL to inherit base_family. Default NULL.

base_line_size

Line size used for axis lines and borders. Default base_size / 22.

base_rect_size

Rectangle border size. Default base_size / 22.

ink

Foreground (text and line) colour. Default "black".

paper

Background colour. Default "transparent".

accent

Accent colour used by some theme_grey() elements. Default "#3366FF".

Value

A ggplot2::theme() object.

Details

For the default dark-background PowerPoint theme use hv_theme_dark_ppt() or its alias hv_theme_ppt().

Examples

library(ggplot2)
p <- ggplot(mtcars, aes(wt, mpg, colour = factor(cyl))) + geom_point()

# Light PPT theme — large font, black text, transparent background
p + hv_theme_light_ppt()


# Via alias
p + theme_light_ppt()


# Via the generic dispatcher
p + hv_theme("light_ppt")