Skip to content

Instantly share code, notes, and snippets.

@erinshellman
Last active November 20, 2015 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erinshellman/5a0c564c07f9abffe332 to your computer and use it in GitHub Desktop.
Save erinshellman/5a0c564c07f9abffe332 to your computer and use it in GitHub Desktop.
This is my own personal theme for ggplots. Mostly theme_minimal() with bigger labels.
theme_presentation = function (base_size = 12, base_family = "") {
theme_minimal(base_size = base_size, base_family = base_family) %+replace%
theme(
axis.text.x = element_text(size = 15),
axis.text.y = element_text(size = 15),
title = element_text(size = 20),
axis.title = element_text(size = 18),
axis.ticks = element_blank(),
legend.position = 'bottom')
}
theme_rmd = function (base_size = 12, base_family = "") {
theme_minimal(base_size = base_size, base_family = base_family) %+replace%
theme(
axis.text.x = element_text(size = 12),
axis.text.y = element_text(size = 12),
title = element_text(size = 15),
axis.title = element_text(size = 14),
axis.ticks = element_blank(),
legend.position = 'bottom')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment