Skip to contents

Helper to transform data frame for sankey highcharts format

Usage

data_to_sankey(data = NULL)

Arguments

data

A data frame

Examples

if (FALSE) {
library(dplyr)
data(diamonds, package = "ggplot2")

diamonds2 <- select(diamonds, cut, color, clarity)

data_to_sankey(diamonds2)

hchart(data_to_sankey(diamonds2), "sankey", name = "diamonds")
}