swt_style: SWT theme for ggplot

View source: R/swt.R

swt_styleR Documentation

SWT theme for ggplot

Description

This function allows you to add the SWT theme to your ggplot graphics.

Usage

swt_style(
  title_size = 14,
  subtitle_size = 14,
  font_size = 10,
  grey_theme = FALSE,
  legend_position = "top"
)

Arguments

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)

Examples


library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) +
   geom_point() +
   swt_style()



schw4b/swt documentation built on April 5, 2025, 7:26 a.m.