theme_clean | R Documentation |
Minimal ggplot2 theme using the Ubuntu Condensed and Ubuntu fonts
theme_clean(
base_font_family = "Ubuntu",
base_font_size = 12,
legend = "bottom",
...
)
base_font_family |
base font family |
base_font_size |
base font size |
legend |
legend position |
... |
Other arguments passed to |
The Ubuntu Condensed and Ubuntu fonts are both Google fonts; they can be found at https://fonts.google.com/specimen/Ubuntu+Condensed and https://fonts.google.com/specimen/Ubuntu. These fonts must be installed locally on your computer for this theme to work.
## Not run:
library(ggpubr)
ggplot(mtcars, aes(wt, mpg)) +
geom_point() +
labs(title = "A Lovely Plot",
subtitle = "What can the subtitle tell us?") +
theme_clean()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.