View source: R/customplotthememd.R
| custom_plot_theme_md | R Documentation |
Custom theme for ggplot plots with markdown texts
custom_plot_theme_md( google_font = "Roboto", title_colour = "#272928", general_colour = "azure4", background_colour = "white", legend_pos = "right", legend_dir = "vertical", plot_margin = c(3, 0, 1, 0), title_size = 14, subtitle_size = 12, caption_size = 9, axis_size = 10, legend_size = 8 )
google_font |
font, from Google Fonts |
title_colour |
Colour for title and legend textx |
general_colour |
Colour for all other texts in plot |
background_colour |
Background colour |
legend_pos |
legend's position (default right) |
legend_dir |
legend's direction (defaul vertical) |
plot_margin |
margins c(top,right,bottom,left) - default c(3,0,1,0) |
title_size |
Title's size |
subtitle_size |
Subtitle's size |
caption_size |
Caption's size |
axis_size |
text size for axis items |
legend_size |
text size for legend |
ggplot theme object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.