Description Usage Arguments Value
View source: R/unicorn_cool_functions.R
Creating A Sankey Diagram From Group by Object
1 | sankey_ly(x, cols, num_col, rcolorbrewer_name = "Set2")
|
x |
A group_by object with both categorical variable and at least one numeric variable |
cols |
A string, defines the categorical variables to use |
num_col |
A string, define a the numeric variable to use for the sankey diagram |
rcolorbrewer_name |
A RcolorBrewer palette |
A plotly object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.