use_reschola_fonts: Make ggplot2 use font(s) in text-based geoms

View source: R/fonts.R

use_reschola_fontsR Documentation

Make ggplot2 use font(s) in text-based geoms

Description

Sets {ggplot2} defaults for most text-based geoms in {ggplot2}, {ggtext}, and {ggrepel}.

Usage

use_reschola_fonts(
  family = "Ubuntu Condensed",
  face = "plain",
  size = 3.5,
  color = "#2b2b2b"
)

set_reschola_ggplot_fonts(
  family = "Ubuntu Condensed",
  face = "plain",
  size = 3.5,
  color = "#2b2b2b"
)

Arguments

family

font family, defaults to reschola recommended

face

font face

size

font size

color

font color

Details

Geoms covered: "text", "label", "richtext", "text_box", "text_repel", and "label_repel".

See Also

Other Font helpers and shortcuts: import_fonts(), install_reschola_fonts(), register_reschola_fonts()


scholaempirica/reschola documentation built on Feb. 1, 2024, 12:26 a.m.