e_sankey {echarts4r} | R Documentation |
Sankey
Description
Draw a sankey diagram.
Usage
e_sankey(
e,
source,
target,
value,
layout = "none",
rm_x = TRUE,
rm_y = TRUE,
...
)
e_sankey_(
e,
source,
target,
value,
layout = "none",
rm_x = TRUE,
rm_y = TRUE,
...
)
Arguments
e |
An |
source , target |
Source and target columns. |
value |
Value change from |
layout |
Layout of sankey. |
rm_x , rm_y |
Whether to remove the x and y axis, defaults to |
... |
Any other option to pass, check See Also section. |
See Also
Examples
sankey <- data.frame(
source = c("a", "b", "c", "d", "c"),
target = c("b", "c", "d", "e", "e"),
value = ceiling(rnorm(5, 10, 1)),
stringsAsFactors = FALSE
)
sankey |>
e_charts() |>
e_sankey(source, target, value)
[Package echarts4r version 0.4.5 Index]