theme_jb: A customized ggplot2 theme for bar charts It has no x axis...

Description Usage Arguments Value

View source: R/jenshelper.R

Description

A customized ggplot2 theme for bar charts It has no x axis line, no grid. Does not work with coord_flip() therefore. Based on Claus Wilkens function but heavily modified. *Type scales* - __default__ is 1.25, a major third, - golden ratio: (1 + sqrt(5)) / 2, - perfect fourth: 1.333, - augmented 4th: 1.414

Usage

1
2
3
4
5
6
7
8
theme_jb(
  font_size = 19,
  font_family = "IBM Plex Sans Condensed",
  line_size = 0.54,
  rel_small = 15.2/19,
  rel_tiny = 12.2/19,
  rel_large = 23.75/19
)

Arguments

font_size

base font size (e.g. axis labels)

font_family

font

line_size

the line width

rel_small

a fraction or relative type scale factor (e.g. axis numbers)

rel_tiny

a fraction or relative type scale factor (e.g. subtitles)

rel_large

a fraction or relative type scale factor (e.g. titles)

Value

a theme that can be + theme_jens() to a ggplot()


barthelmes/jenshelper documentation built on June 15, 2020, 4:09 p.m.