swt_style | R Documentation |
This function allows you to add the SWT theme to your ggplot graphics.
swt_style(
title_size = 14,
subtitle_size = 14,
font_size = 10,
grey_theme = FALSE,
legend_position = "top"
)
title_size |
The font size of the title |
subtitle_size |
The font size of the subtitle |
font_size |
The font font size of the legend, axis text, and axis titles |
grey_theme |
Whether to use the grey theme instead (TRUE or FALSE) |
legend_position |
Position of the legend (top, bottom, left or right) |
library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) +
geom_point() +
swt_style()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.