data_to_sankey | R Documentation |
Helper to transform data frame for sankey highcharts format
data_to_sankey(data = NULL)
data |
A data frame |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.