geom_sankey_bump | R Documentation |
Creates an alluvial plot which visualize flows between nodes. Each observation needs to have a 'x' aesthetic as well as a 'next_x' column which declares where that observation should flow. Also each observation should have a 'node' and a 'next_node' aesthetic which provide information about which group in the y-direction.
geom_sankey_bump(
mapping = NULL,
data = NULL,
position = "identity",
na.rm = FALSE,
show.legend = NA,
smooth = 8,
type = "sankey",
inherit.aes = TRUE,
...
)
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 |
smooth |
how much smooth should the curve have? More means steeper curve. |
type |
either 'sankey' or 'alluvial' |
inherit.aes |
should the geom inherit aesthetics |
... |
other arguments to be passed to the geo |
Other important arguments is; 'space' which proves the space between nodes in the y-direction; 'shift' which shifts nodes in the y-direction.
ggplot layer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.