geom_alluvial_label: geom_alluvial_label

geom_alluvial_labelR Documentation

geom_alluvial_label

Description

Creates centered labels or text in nodes of your alluvial plot. Needs to have the exact same aestethics as the call to 'geom_alluvial' to work.

Usage

geom_alluvial_text(
  mapping = NULL,
  data = NULL,
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  space = 0,
  width = 0.1,
  inherit.aes = TRUE,
  ...
)

geom_alluvial_label(
  mapping = NULL,
  data = NULL,
  position = "identity",
  na.rm = FALSE,
  show.legend = NA,
  space = 0,
  width = 0.1,
  inherit.aes = TRUE,
  ...
)

Arguments

mapping

provide you own mapping. both x and y need to be numeric.

data

provide you own data

position

change position

na.rm

remove missing values

show.legend

show legend in plot

space

space between nodes in the y-direction

width

width of nodes

inherit.aes

should the geom inherits aestethics

...

other arguments to be passed to the geo

Details

Other important arguments is; 'space' which proves the space between nodes in the y-direction; 'shift' which shifts nodes in the y-direction.

Value

ggplot layer


zh542370159/SCP documentation built on Nov. 22, 2023, 2:34 a.m.