theme_jjf: JJF Theme Function

View source: R/theme_jjf.R

theme_jjfR Documentation

JJF Theme Function

Description

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

Usage

theme_jjf(font = "Roboto Condensed", fontsize = 12)

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()

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

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

## End(Not run)


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