Skip to contents

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

Usage

theme_em(
  title_family = "Gagalin",
  text_family = "Gagalin",
  base_size = 10.5,
  title_color = "#2F2D2E",
  text_color = "gray25",
  bg_color = "fefefe",
  line_color = "gray50",
  plot_margin = ggplot2::margin(0.5, 1, 0.5, 1, "cm"),
  text_margin = ggplot2::margin(0.2, 0, 1, 0, "cm"),
  with.bg = FALSE,
  with.grid = TRUE,
  with.line = TRUE,
  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

text_color

color of the text elements

bg_color

plot background color

line_color

color of line elements

plot_margin

plot margin specifications

text_margin

margin around text

with.bg

Include color background

with.grid

Include panel grid (default: FALSE)

with.line

Include axis line (default: FALSE)

md

indicate whether to use markdown elements for text