theme_ath: My custom ggplot theme

Description Usage Arguments Examples

View source: R/theme_ath.R

Description

Provides a modified version of theme_bw.

Usage

1
2
theme_ath(base_size = 12, base_family = "", legend_bottom = FALSE,
  margin_bottom = -0.5)

Arguments

base_size

base font size (defaults to 12)

base_family

base font family

legend_bottom

set this to TRUE to place the legend at the bottom of the plot

margin_bottom

bottom plot margin, in lines (only used when legend_bottom = TRUE) (defaults to -0.5)

Examples

1
2
3
4
5
6
library(ggplot2)
ggplot(mtcars, aes(x=mpg, y=wt, colour=as.factor(cyl))) + 
  geom_point() + theme_ath()
  
ggplot(mtcars, aes(x=mpg, y=wt, colour=as.factor(cyl))) + 
  geom_point() + theme_ath(legend_bottom=TRUE)

andrewheiss/rath documentation built on Nov. 15, 2019, 11:07 p.m.