theme_y2 | R Documentation |
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()
theme_y2(font_family = "Flama")
font_family |
DEFAULT = 'Flama' |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.