data_to_sankey: Helper to transform data frame for sankey highcharts format

Description Usage Arguments Examples

View source: R/data-helpers.R

Description

Helper to transform data frame for sankey highcharts format

Usage

1

Arguments

data

A data frame

Examples

 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)

highcharter documentation built on July 26, 2020, 9:07 a.m.