networkD3 package allows to visualize networks using
several kinds of viz. One of its function makes stunning Sankey
diagrams as shown below. Follow the steps below to get the basics and
learn how to customize your Sankey Diagram.
This chart focuses on input format. It shows how to build very basic Sankey Diagrams from all kind of input datasets.
networkD3 package is an htmlwidget: it automatically
builds interactive charts. Check the chart below: you can drag nodes
and hover links for more informagtion. If for some reason you need to
export it to
Note: The example below comes directly from the networkD3 documentation.How to export to .png Chart code
An alluvial chart is a variation of the sankey plot. It visualizes
frequency distributions over time or frequency tables involving
several categorical variables. In
R, 2 packages exist to
build an alluvial diagram: