theme_avantgarde: Minimal ggplot2 theme using the AvantGarde font

View source: R/jofou_theme.R

theme_avantgardeR Documentation

Minimal ggplot2 theme using the AvantGarde font

Description

Minimal ggplot2 theme using the AvantGarde font

Usage

theme_avantgarde(
  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,
  plot_axis = 1,
  plot_ticks = 0.5,
  ...
)

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

plot_axis, plot_ticks

plot axis and ticks size

...

Other arguments passed to theme_minimal

Details

The AvantGarde font is a base font of the extrafont package

Examples

## Not run: 
library(ggplot2)

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

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


## End(Not run)


Jofou/jofou.lib documentation built on May 22, 2022, 11:42 a.m.