shadowtext: plot borders around text based on text colors

View source: R/clusterTools.R

shadowtextR Documentation

plot borders around text based on text colors

Description

plot borders around text based on text colors

Usage

shadowtext(
  x,
  y = NULL,
  labels,
  col = "white",
  bg = "black",
  auto.bg = TRUE,
  bg.thresh = 0.75,
  r = 0.05,
  ...
)

Arguments

x

x-coordinates of text labels

y

y-coordinates of text labels

labels

vector of text labels

col

vector of text foreground colors

bg

vector of text background colors

auto.bg

auto-select background color black or white based on a brightness color model

bg.thresh

brightness threshold to switch from black to white background color

r

ratio of stringwidth and stringheight to use for background color

...

further arguments to text in both foreground and background calls


raim/segmenTools documentation built on May 5, 2024, 11:30 a.m.