View source: R/shadowtext-grob.R
shadowtextGrob | R Documentation |
create and draw text
shadowtextGrob( label, x = unit(0.5, "npc"), y = unit(0.5, "npc"), just = "centre", hjust = NULL, vjust = NULL, rot = 0, check.overlap = FALSE, default.units = "npc", name = NULL, gp = gpar(col = "white"), vp = NULL, bg.colour = "black", bg.r = 0.1 ) grid.shadowtext( label, x = unit(0.5, "npc"), y = unit(0.5, "npc"), just = "centre", hjust = NULL, vjust = NULL, rot = 0, check.overlap = FALSE, default.units = "npc", name = NULL, gp = gpar(col = "white"), vp = NULL, bg.colour = "black", bg.r = 0.1, draw = TRUE )
label |
text labels |
x |
x position |
y |
y position |
just |
The justification of the text, can be 'left', 'right', 'center', 'bottom' and 'top' |
hjust |
horizontal adjustment |
vjust |
vertical adjustment |
rot |
angle to rotate the text |
check.overlap |
whether check for and omit overlapping text |
default.units |
default unit of x and y |
name |
identifier |
gp |
gpar object |
vp |
viewport object |
bg.colour |
background color of shadow text |
bg.r |
background ratio of shadow text |
draw |
whether draw the grob |
grob object
guangchuang yu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.