View source: R/theme_jjf_slides.R
theme_jjf_slides | R Documentation |
JJF custom ggplot2 theme for slides Clean white backgrounds, nice narrow font, etc.
theme_jjf_slides(font = "Roboto Condensed", fontsize = 20)
font |
the font to use in the graph with Roboto Condensed as the default |
fontsize |
the font size, 12 is good for papers and 20 for slides |
## Not run: ggplot2::ggplot(cars, aes(x = dist, y = speed)) + geom_point() + theme_jjf_slides() # same as above, roboto Condensed is the default ggplot2::ggplot(cars, aes(x = dist, y = speed)) + geom_point() + theme_jjf_slides(font = "Roboto Condensed") # ggplot2::ggplot(cars, aes(x = dist, y = speed)) + # geom_point() + # theme_jjf_slides(font = "CMU Sans Serif") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.