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
)
grob object
text labels
x position
y position
The justification of the text, can be 'left', 'right', 'center', 'bottom' and 'top'
horizontal adjustment
vertical adjustment
angle to rotate the text
whether check for and omit overlapping text
default unit of x and y
identifier
gpar object
viewport object
background color of shadow text
background ratio of shadow text
whether draw the grob
guangchuang yu