set_ptrr_ggplot_fonts: Make ggplot2 use chosen font in geom_text/label

View source: R/fonts.R

set_ptrr_ggplot_fontsR Documentation

Make ggplot2 use chosen font in geom_text/label

Description

Wrapper around update_geom_font_defaults(), different default

Usage

set_ptrr_ggplot_fonts(
  family = "IBM Plex Sans Condensed",
  fontface = "plain",
  size = 3.5,
  color = "black",
  lineheight = 0.95
)

Arguments

family

font, defaults to '"IBM Plex Sans"'

fontface

face, defaults to '"plain"'

size

size, defaults to 3.5

color

color, defaults to "black"

lineheight

lineheight, defaults to 0.95


petrbouchal/ptrr documentation built on Oct. 10, 2024, 7:21 a.m.