theme_jjf: JJF Theme Function

Description Usage Arguments Examples

View source: R/theme_jjf.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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 June 17, 2018, 9:52 p.m.