theme_coiaf: Custom ggplot2 theme

View source: R/themes.R

theme_coiafR Documentation

Custom ggplot2 theme

Description

Custom ggplot2 theme

Usage

theme_coiaf(
  base_size = 10,
  base_family = "",
  base_line_size = base_size/22,
  base_rect_size = base_size/22
)

Arguments

base_size

base font size, given in pts.

base_family

base font family

base_line_size

base size for line elements

base_rect_size

base size for rect elements

Examples

library("ggplot2")
p <- ggplot(mtcars, aes(x = wt, y = mpg, colour = factor(gear))) +
  geom_point() +
  facet_wrap(~am) +
  geom_smooth(method = "lm", se = FALSE)

p + theme_coiaf()

bailey-lab/coiaf documentation built on April 26, 2023, 6:32 p.m.