Learn R Programming

highcharter (version 0.9.4)

data_to_sankey: Helper to transform data frame for sankey highcharts format

Description

Helper to transform data frame for sankey highcharts format

Usage

data_to_sankey(data = NULL)

Arguments

data

A data frame

Examples

Run this code
# NOT RUN {
library(dplyr)
data(diamonds, package = "ggplot2")

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

data_to_sankey(diamonds2)

hchart(data_to_sankey(diamonds2), "sankey", name = "diamonds")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab