kyle_label: Custom default for 'label' annotation

View source: R/ggplot_utils.R

kyle_labelR Documentation

Custom default for label annotation

Description

Custom default for label annotation

Usage

kyle_label(
  label,
  x,
  y,
  size = 10,
  size.unit = "pt",
  text.color = tailwind_color("zinc-800"),
  fill = "white",
  border.color = tailwind_color("zinc-300"),
  linewidth = 0.5,
  label.r = unit(4, "pt"),
  label.padding = unit(6, "pt"),
  hjust = 0,
  vjust = 1
)

Arguments

label

Text to be displayed

x

x coordinate of the label

y

y coordinate of the label

size

Text size in points

size.unit

units for size

text.color

color of text

fill

background color

border.color

color of border

linewidth

width of border

label.r

radius of rounded corners

label.padding

padding around the label

hjust

horizontal justification

vjust

vertical justification

Value

A ggplot layer object with a label annotation


kylebutts/kfbmisc documentation built on April 17, 2025, 5:20 p.m.