stextGrob {Orcs} | R Documentation |
Draw Shadow Text
Description
Create and draw shadow text by wrapping a textual expression into a colored framing.
Usage
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 |
x , y |
Horizontal and vertical text position as |
col , fill |
Framing and fill color passed to |
r |
Blur radius of colored framing as |
name , gp , vp |
Graphical parameters passed to |
... |
Additional arguments passed to [grid::grid.text()]. |
Value
A text grob created by grid::gTree()
.
Author(s)
Baptiste Auguie, Florian Detsch
Examples
library(grid)
grid.newpage()
grid.rect(gp = gpar(fill = "grey"))
grid.stext("test")
[Package Orcs version 1.2.3 Index]