theme_common_adjustments | R Documentation |
ggplot theme that fixes a bunch of issues I tend to have with plots.
theme_common_adjustments( dist_from_plot_xlab = 10, dist_from_plot_ylab = 10, dist_from_plot_ggtitle = 10, no_background = FALSE, subtitle_face = "plain" )
dist_from_plot_xlab |
distance between x axis title and plot (number) |
dist_from_plot_ylab |
distance between y axis title and plot (number) |
dist_from_plot_ggtitle |
distance between y axis title and plot (number) |
no_background |
set all backgrounds to clear? (flag) |
subtitle_face |
Font face ("plain", "italic", "bold", "bold.italic") |
By default, will bold center axis and plot titles and tweak distane of axis_titles to plot
ggtheme
mtcars %>% ggplot2::ggplot(ggplot2::aes(cyl>6, mpg)) + ggplot2::geom_point() + theme_common_adjustments()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.