geom_shadowtext {shadowtext} | R Documentation |
geom_shadowtext
Description
a shadow version of geom_text
Usage
geom_shadowtext(
mapping = NULL,
data = NULL,
stat = "identity",
position = "identity",
...,
parse = FALSE,
nudge_x = 0,
nudge_y = 0,
check_overlap = FALSE,
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE
)
Arguments
mapping |
aesthetic mapping |
data |
the data to be displayed |
stat |
statistical transformation |
position |
position adjustment |
... |
additional parameter |
parse |
whether parse text as expression |
nudge_x |
horizontal adjustment of text |
nudge_y |
vertical adjustment of text |
check_overlap |
whether check overlap |
na.rm |
whether remove NA values |
show.legend |
whether show legend |
inherit.aes |
whether inherit aes from ggplot |
Value
layer
Author(s)
guangchuang yu
Examples
library(ggplot2)
d <- data.frame(x = rnorm(3), y=rnorm(3), label = c('hello', 'world', '!!!'))
ggplot(d, aes(x,y)) + geom_shadowtext(aes(label=label, color=label), bg.colour='firebrick')
[Package shadowtext version 0.1.4 Index]