data_to_sankey {highcharter} | R Documentation |
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
## 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")
## End(Not run)
[Package highcharter version 0.9.4 Index]