geom_shadowtext: geom_shadowtext

Description Usage Arguments Value Author(s) Examples

View source: R/geom-shadowtext.R

Description

a shadow version of geom_text

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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

1
2
3
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')

Example output



shadowtext documentation built on Dec. 20, 2021, 5:08 p.m.