theme_ak: Koh's default theme specs for ggplot2, inspired by functions...

Description Usage Arguments Details Examples

View source: R/vis.R

Description

Koh's default theme specs for ggplot2, inspired by functions in silgelib

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
theme_ak(
  base_size = 11,
  strip_text_size = 12,
  strip_text_margin = 5,
  subtitle_size = 13,
  subtitle_margin = 10,
  plot_title_size = 16,
  plot_title_margin = 10,
  legend_position = "bottom",
  plot_caption_color = "gray40",
  ...
)

Arguments

base_size

base font size

strip_text_size, strip_text_margin

plot strip text size and margin

subtitle_size, subtitle_margin

plot subtitle size and margin

plot_title_size, plot_title_margin

plot title size and margin

legend_position

legend position

plot_caption_color

color of caption

...

Other arguments passed to theme_minimal

Details

The Roboto Condensed and Roboto Bold fonts are both Google fonts; they can be found at https://fonts.google.com/specimen/Roboto+Condensed and https://fonts.google.com/specimen/Roboto. These fonts must be installed locally on your computer for this theme to work.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(ggplot2)

ggplot(mtcars, aes(wt, mpg)) +
    geom_point() +
    labs(title = "A Lovely Plot",
         subtitle = "What can the subtitle tell us?") +
    theme_oswald()

## End(Not run)

allisonkoh/kohmisc documentation built on Dec. 19, 2021, 1:32 a.m.