Skip to contents

Custom ggplot theme

Usage

plot_theme(
  main_font = "sans",
  title_font = "sans",
  hjust = 0,
  text_col = "black",
  bg_col = "white"
)

Arguments

main_font

Font used for all text elements except the title. Default "sans".

title_font

Font used for the title. Default "sans".

hjust

Horizontal alignment of title, subtitle, and caption. Default 0.

text_col

Text colour. Default "black".

bg_col

Background colour. Default "white".

Value

A ggplot2 theme