Skip to content

Instantly share code, notes, and snippets.

@cararthompson
Created June 10, 2025 18:31
Show Gist options
  • Select an option

  • Save cararthompson/b3b41f133ab083b205f516320d44e446 to your computer and use it in GitHub Desktop.

Select an option

Save cararthompson/b3b41f133ab083b205f516320d44e446 to your computer and use it in GitHub Desktop.
theme_beak_off <- function(base_text_size = 16) {
theme_minimal(base_size = base_text_size) +
theme(
text = element_text(family = "Work Sans"),
axis.text = element_text(colour = "#495058"),
legend.position = "none",
axis.title = element_blank(),
plot.title = element_text(
family = "Poppins",
face = "bold",
size = rel(1.5)
),
panel.grid = element_line(colour = "#FFFFFF"),
plot.background = element_rect(fill = "#F4F5F6", colour = "#F4F5F6"),
plot.caption = element_text(
size = rel(0.8),
margin = margin(base_text_size / 2, 0, 0, 0)
),
plot.margin = margin(rep(base_text_size * 1.5, 4))
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment