theme_common_adjustments: Custom Themes

View source: R/themes.R

theme_common_adjustmentsR Documentation

Custom Themes

Description

ggplot theme that fixes a bunch of issues I tend to have with plots.

Usage

theme_common_adjustments(
  dist_from_plot_xlab = 10,
  dist_from_plot_ylab = 10,
  dist_from_plot_ggtitle = 10,
  no_background = FALSE,
  subtitle_face = "plain"
)

Arguments

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")

Details

By default, will bold center axis and plot titles and tweak distane of axis_titles to plot

Value

ggtheme

Examples

mtcars %>%
  ggplot2::ggplot(ggplot2::aes(cyl>6, mpg)) +
  ggplot2::geom_point() +
  theme_common_adjustments()

selkamand/utilitybeltgg documentation built on July 14, 2022, 2:32 p.m.