data_to_sankey: Helper to transform data frame for sankey highcharts format

View source: R/data-helpers.R

data_to_sankeyR 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)


jbkunst/highcharter documentation built on March 14, 2024, 12:52 a.m.