Learn R Programming

tntpr (version 1.2.1)

update_geom_font_defaults: Update matching font defaults for text geoms

Description

Updates [ggplot2::geom_label] and [ggplot2::geom_text] font defaults

Usage

update_geom_font_defaults(
  family = "Segoe UI",
  face = "plain",
  size = 3.5,
  color = "#2b2b2b"
)

Value

nothing

Arguments

family, face, size, color

font family name, face, size and color

Examples

Run this code
if (FALSE) { # interactive()
# Update text geoms to use Arial font
update_geom_font_defaults(family = 'Arial')
}

Run the code above in your browser using DataLab