Creates a sankey chart using Highcharter library.

hgch_sankey(data, dic = NULL, var_cat = NULL, var_num = NULL, ...)

Arguments

data

a data frame containing the variables to be plotted.

dic

a named list, each element corresponding to a column name in data and defining a set of labels for that column.

var_cat

the names of the categorical variables in the data frame

var_num

a character vector with the name of numerical variable.

...

additional arguments to be passed to dsviz_default_opts

Value

a Highcharter sankey chart.

See also