powered by
a shadow version of geom_text
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 )
layer
aesthetic mapping
the data to be displayed
statistical transformation
position adjustment
additional parameter
whether parse text as expression
horizontal adjustment of text
vertical adjustment of text
whether check overlap
whether remove NA values
whether show legend
whether inherit aes from ggplot
guangchuang yu
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')
Run the code above in your browser using DataLab