font: Create a list of font settings for plots

View source: R/plotting_utilities.R

fontR Documentation

Create a list of font settings for plots

Description

\Sexpr[results=rd, stage=render]{lifecycle::badge("experimental")}

Creates a list of font settings for plotting with cvms plotting functions.

NOTE: This is very experimental and will likely change.

Usage

font(
  size = NULL,
  color = NULL,
  alpha = NULL,
  nudge_x = NULL,
  nudge_y = NULL,
  angle = NULL,
  family = NULL,
  fontface = NULL,
  hjust = NULL,
  vjust = NULL,
  lineheight = NULL,
  digits = NULL,
  prefix = NULL,
  suffix = NULL
)

Arguments

size, color, alpha, nudge_x, nudge_y, angle, family, fontface, hjust, vjust, lineheight

As passed to ggplot2::geom_text.

digits

Number of digits to round to. If negative, no rounding will take place.

prefix

A string prefix.

suffix

A string suffix.

Value

List of settings.

Author(s)

Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk

See Also

Other plotting functions: plot_confusion_matrix(), plot_metric_density(), plot_probabilities(), plot_probabilities_ecdf(), sum_tile_settings()


cvms documentation built on Sept. 11, 2024, 6:22 p.m.