The parameter set include:
This vignette is a tutorial for sankey plots created using the ggplot2 package in R. This includes the parameter used for generating the plot and also the sample output and dataset that can be used to test the package.
This can also be installed from github and run using library('sankey'). For more details check ?create_sankey
usage: create_sankey(data,datacol1,pdfname) create_sankey('mydata_customers.txt','customer','out')
library(png) library(grid) img <- readPNG("/Users/amritakar/Desktop/sankey_package/out.png") grid.raster(img)
Caption = "Demo of the output data."
This is an example data of customers and their weekly grocery budget on items such as bread, fruit, meat and drinks. This data has been adapted from - https://github.com/anazalea/pySankey/blob/master/customers-goods.csv [https://github.com/anazalea/pySankey]
library(png) library(grid) img <- readPNG("/Users/amritakar/Desktop/sankey_package/data.png") grid.raster(img)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.