geom_shadowtext: geom_shadowtext

View source: R/geom-shadowtext.R

geom_shadowtextR 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')

shadowtext documentation built on April 22, 2022, 5:06 p.m.