Skip to contents

update_cori_geom_defaults() provides a ggplot2 theme that aligns with the CORI style guide, with sensible defaults.

Usage

update_cori_geom_defaults(base_family = "Lato")

Arguments

base_family

The base font family for the theme, defaults to "Lato".

Examples

library(ggplot2)
library(dplyr)
data(cori_employment)

update_cori_geom_defaults()
cori_education %>%
  group_by(date) %>%
  summarize(percent_working_remotely = mean(percent_working_remotely)) %>%
  ggplot(aes(date, percent_working_remotely)) +
  geom_hline(yintercept = 0.12) +
  scale_y_continuous(labels = scales::percent) +
  geom_line() +
  geom_point()