stextGrob | R Documentation |
Create and draw shadow text by wrapping a textual expression into a colored framing.
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, ... )
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()]. |
A text grob created by grid::gTree()
.
Baptiste Auguie, Florian Detsch
library(grid) grid.newpage() grid.rect(gp = gpar(fill = "grey")) grid.stext("test")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.