shadeText: Plot shadowed text labels

View source: R/pkShadowText.r

shadeTextR Documentation

Plot shadowed text labels

Description

Plot text labels with a different color shadow or faked outline. Function taken from TeachingDemos package.

Usage

shadeText(
  x,
  y = NULL,
  labels,
  col = "white",
  bg = "black",
  theta = seq(pi/4, 2 * pi, length.out = 8),
  r = 0.1,
  ...
)

pkShadowText(
  x,
  y = NULL,
  labels,
  col = "white",
  bg = "black",
  theta = seq(pi/4, 2 * pi, length.out = 8),
  r = 0.1,
  ...
)

Arguments

x

x position

y

y position

labels

text labels

col

foreground color

bg

shadow/outline color

theta

angle at which to plot the shadow

r

distance of the shadow

...

any other arguments for text function

Value

Vector with hex colors strings.


kraaijenbrink/pkrf documentation built on July 4, 2023, 10:16 p.m.