theme_sep | R Documentation |
This function, strongly inspired by Bob Rudis' hrbrthemes, aims to standardize the appearance of the plots in SEP Reports. The function is written to be highly adaptable. Thus, it is more of a basic idea than an actual template for the plots. Note, this function currently only works if the "Roboto" family is installed on your system (publicly available https://fonts.google.com/specimen/Roboto)!
theme_sep( base_family = "Roboto", base_size = 11.5, plot_title_family = base_family, plot_title_size = 18, plot_title_face = "bold", plot_title_margin = 10, subtitle_family = base_family, subtitle_size = 12, subtitle_face = "plain", subtitle_margin = 15, strip_text_family = base_family, strip_text_size = 12, strip_text_face = "plain", caption_family = base_family, axis_text_size = base_size, axis_title_family = subtitle_family, axis_title_size = 9, axis_title_face = "plain" )
base_family |
base font family |
base_size |
base font size |
plot_title_family |
plot title family |
plot_title_size |
plot title size |
plot_title_face |
plot title face |
plot_title_margin |
plot title margin |
subtitle_family |
subtitle font family |
subtitle_size |
subtitle size |
subtitle_face |
subtitle face |
subtitle_margin |
subtitle margin |
strip_text_family |
strip text family |
strip_text_size |
strip text size |
strip_text_face |
strip text face |
caption_family |
caption font family |
axis_text_size |
axis text size |
axis_title_family |
axis title font family |
axis_title_size |
axis title size |
axis_title_face |
axis title face |
the sep theme
## Not run: ## set as theme theme_set(theme_sep()) ## or use locally library(ggplot2) ggplot(data = mtcars, aes(x = gear, y = am)) + geom_point() + theme_sep() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.