theme_y2: Add the classic y2 theme to any ggplot2 chart

View source: R/theme_y2.R

theme_y2R Documentation

Add the classic y2 theme to any ggplot2 chart

Description

All y2artisan charts already have the y2 theme built in, but if you're creating a more custom ggplot2 chart and want to add the classic y2 theme, use theme_y2()

Usage

theme_y2(font_family = "Flama")

Arguments

font_family

DEFAULT = 'Flama'

Examples

## Not run: 
frequencies <- mtcars %>%
  y2clerk::freqs(carb) %>%
  orderlabel::order_label(inherent_order_label = TRUE)

chart <- ggplot2::ggplot(
  frequencies,
  ggplot2::aes(x = label, y = result)
) +
  ggplot2::geom_bar(stat = 'identity') +
  theme_y2()
  
## End(Not run)

nick-moffitt/y2artisan documentation built on July 30, 2023, 5:40 p.m.