stextGrob: Draw Shadow Text

Description Usage Arguments Value Author(s) References See Also Examples

Description

Create and draw shadow text by wrapping a textual expression into a colored framing.

Usage

1
2
3
stextGrob(label, x = grid::unit(0.5, "npc"), y = grid::unit(0.5,
  "npc"), col = "white", fill = "black", r = 0.1,
  gp = grid::gpar(), vp = NULL, name = NULL, ...)

Arguments

label

A character or expression vector, see textGrob.

x, y

Horizontal and vertical text position as unit objects passed to grid.text.

col, fill

Framing and fill color passed to gpar.

r

Blur radius of colored framing as numeric.

name, gp, vp

Graphical parameters passed to gTree.

...

Additional arguments passed to grid.text.

Value

A text grob created by gTree.

Author(s)

Baptiste Auguie, Florian Detsch

References

https://rdrr.io/github/baptiste/gridplot/src/R/tmatrix.r (accessed on 29 May 2018).

See Also

grid.text.

Examples

1
2
3
4
library(grid)
grid.newpage()
grid.rect(gp = gpar(fill = "grey"))
grid.stext("test")

Orcs documentation built on May 2, 2019, 2:37 a.m.