Skip to contents

There is an option to convert theme use markdown theme elements (md = TRUE) to use markdown theme elements from ggtext instead of element_text().

Usage

theme_unl(
  title_family = "Newsreader",
  text_family = "IBM Plex Sans",
  base_size = 10.5,
  title_color = "#D00000",
  subtitle_color = "#ffd74f",
  text_color = "#242423",
  bg_color = "#ebebea",
  line_color = "#242423",
  plot_margin = ggplot2::margin(20, 20, 20, 20),
  with.grid = FALSE,
  with.line = FALSE,
  md = FALSE
)

Arguments

title_family

title elements font family

text_family

text elements font family

base_size

base font size

title_color

color of the title elements

subtitle_color

color of subtitle elements

text_color

color of the text elements

bg_color

plot background color

line_color

color of line elements

plot_margin

plot margin specifications

with.grid

Include panel grid (default: FALSE)

with.line

Include axis line (default: FALSE)

md

indicate whether to use markdown elements for text