theme_apa: APA compatible ggplot2 theme

Description Usage Arguments Details Examples

Description

A ggplot2 theme with a white panel background, no grid lines, large axis and legend titles, and increased text padding for better readability.

A ggplot2 theme with a white panel background, no grid lines, large axis and legend titles, and increased text padding for better readability.

Usage

1
2
3
theme_apa(base_size = 12, base_family = "", box = FALSE)

theme_apa(base_size = 12, base_family = "", box = FALSE)

Arguments

base_size

Numeric. Base font size; other font sizes and margins are adjusted relative to this.

base_family

Character. Base font family.

box

Logical. Indicates whether to draw a box around the plot.

Details

This theme is an adaptation of theme_bw. In ggplot2, themes set the general aspect of the plot such as the colour of the background, gridlines, the size and colour of fonts.

This theme is an adaptation of theme_bw. In ggplot2, themes set the general aspect of the plot such as the colour of the background, gridlines, the size and colour of fonts.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 ## Not run: 
   # Copied from ?ggtheme
   p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
     colour = factor(gear))) + facet_wrap(~ am)
   p
   p + theme_apa()
 
## End(Not run)
 ## Not run: 
   # Copied from ?ggtheme
   p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg,
     colour = factor(gear))) + facet_wrap(~ am)
   p
   p + theme_apa()
 
## End(Not run)

alexholcombe/mixRSVP documentation built on June 7, 2019, 3:50 p.m.