theme_jjf_slides: JJF Theme Function for Slides

View source: R/theme_jjf_slides.R

theme_jjf_slidesR Documentation

JJF Theme Function for Slides

Description

JJF custom ggplot2 theme for slides Clean white backgrounds, nice narrow font, etc.

Usage

theme_jjf_slides(font = "Roboto Condensed", fontsize = 20)

Arguments

font

the font to use in the graph with Roboto Condensed as the default

fontsize

the font size, 12 is good for papers and 20 for slides

Examples

## Not run: 

ggplot2::ggplot(cars, aes(x = dist, y = speed)) +
  geom_point() +
  theme_jjf_slides()

# same as above, roboto Condensed is the default
ggplot2::ggplot(cars, aes(x = dist, y = speed)) +
  geom_point() +
  theme_jjf_slides(font = "Roboto Condensed")

# ggplot2::ggplot(cars, aes(x = dist, y = speed)) +
#  geom_point() +
#  theme_jjf_slides(font = "CMU Sans Serif")

## End(Not run)


jamesfeigenbaum/jjfPkg documentation built on March 31, 2022, 5:33 p.m.