theme_apa: ggplot2 Theme for APA Publications

Description Usage Arguments See Also Examples

Description

A ggplot2 theme with no background and Times New Roman font.

Usage

1
theme_apa(plot.box = FALSE)

Arguments

plot.box

logical. If TRUE a full box surrounds the plot area. If FALSE only the x and y axis are shown.

See Also

theme

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 
ggplot(reorder_by(cyl, ~-cyl , mtcars, length), aes(x=as.factor(cyl))) +
    geom_bar()  +
    theme_apa() +
    y0(cushion(as.factor(mtcars$cyl))) +
    xlab("Cylinders") +
    ylab("Total")

ggplot(reorder_by(cyl, ~-cyl , mtcars, length), aes(x=as.factor(cyl))) +
    geom_bar()  +
    theme_apa(plot.box=T) +
    y0(cushion(as.factor(mtcars$cyl))) +
    xlab("Cylinders") +
    ylab("Total")

ggplot(reorder_by(cyl, ~-cyl , mtcars, length), aes(x=as.factor(cyl))) +
    geom_bar()  +
    theme_basic() +
    theme_apa() +
    y0(cushion(as.factor(mtcars$cyl))) +
    xlab("Cylinders") +
    ylab("Total")

## End(Not run)

trinker/plotflow documentation built on May 31, 2019, 9:42 p.m.