Skip to contents

Plot Sankey (highcharts)

Usage

plot_sankey(data, unit = NA, colors = pal, ...)

Arguments

data

(optional) data with columns from, to, weight and color

unit

display unit

colors

ordered color palette

...

Arguments passed on to hc_themed

hc

a highchart object

title

chart title

subtitle

chart subtitle

label

optional annotation

base_font

default font for all chart elements

axes

show axes (default: TRUE)

exporting

include chart export menu (default: TRUE)

credits

include credits (default: FALSE)

Examples

plot_sankey(dt)
#> Error: 'data' argument is not named in hc_add_series