theme_plex: Minimal ggplot2 theme using the IBM Plex Sans fonts

Description Usage Arguments Details Examples

View source: R/graph_themes.R

Description

Minimal ggplot2 theme using the IBM Plex Sans fonts

Usage

1
2
3
theme_plex(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, ...)

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

...

Other arguments passed to theme_minimal

Details

The IBM Plex fonts are open source and can be found at https://ibm.github.io/type/. 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
11
12
13
14
15
16
17
18
## Not run: 
library(ggplot2)

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

ggplot(diamonds, aes(carat, price, color = clarity)) +
    geom_point() +
    facet_wrap(~cut) +
    labs(title = "A Lovely Plot",
         subtitle = "What can the subtitle tell us?") +
         theme_plex()


## End(Not run)

trallard/trallard_R documentation built on May 6, 2019, 8:52 a.m.