gt_shadowtext: Helper for shadow text

Description Usage Arguments Examples

View source: R/gt_shadowtext.R

Description

Place a shadow behind text (white default) Helper to make text more visible Credit: Greg Snow http://blog.revolutionanalytics.com/2009/05/make-text-stand-out-with-outlines.html

Usage

1
2
3
gt_shadowtext(x, y = NULL, labels, col = "black", bg = "white",
  n_shadows = 12, theta = seq(pi/4, 2 * pi, length.out = n_shadows),
  r = 0.1, ...)

Arguments

x

X location

y

Y location

labels

text

col

Text color

bg

Background (shadow) color

n_shadows

Number of shadows to cast: deault is 12

Examples

1
2
frame()
gt_shadowtext(x = .5, y = .5, labels = "text", col = "white", bg = "red")

macartan/hop documentation built on Jan. 4, 2022, 9:21 p.m.