element_textbox_colorsub: Custom ggplot2 element textbox highlight

element_textbox_colorsubR Documentation

Custom ggplot2 element textbox highlight

Description

Custom ggplot2 element textbox highlight

Usage

element_textbox_colorsub(
  ...,
  colorSub = NULL,
  width = grid::unit(1, "npc"),
  padding = ggplot2::margin(6, 2, 4, 2),
  margin = ggplot2::margin(1, 1, 1, 1),
  linetype = 1,
  r = grid::unit(0, "pt"),
  halign = 0.5,
  valign = 0.5
)

Details

This function is used internally by ggjammaplot() to colorize ggplot2 facet strip panel background using a named color vector supplied as colorSub.

See Also

Other jam ggtext functions: element_grob.element_textbox_colorsub()


jmw86069/jamma documentation built on July 6, 2023, 1:09 p.m.