shadeText: Plot shadowed text labels

Description Usage Arguments Value

View source: R/pkShadowText.r

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
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 Nov. 14, 2020, 12:29 p.m.