Description Usage Arguments Examples
Helper to transform data frame for sankey highcharts format
1 |
data |
A data frame |
1 2 3 4 5 6 7 8 9 10 11 | ## 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.