Launching two @Stata packages today:
First one is the much requested #sankey:
https://github.com/asjadnaqvi/stata-sankey
that can be used to map flows across categories and layers
Second one is its close relative: #alluvial
https://github.com/asjadnaqvi/stata-alluvial
That can be used to compare how caterogies are evolving in the dataset
The two @Stata packges are still in beta and will get further feature enhancments including more complex layer combinations.
Please test them out and report bugs/errors/feature requests on their respective GitHub pages.
\END
On alluvial plots since some asked where 2 use them: Alluvials track changes across units (rows) over variables (cols). This could b changes in same variables across survey rounds, college grades ovr years, voting patterns, opinions etc. They look like Sankeys but r v different!
Both are up on SSC:
ssc install sankey, replace
ssc install alluvial, replace
As always: latest updates, bug fixes, enhancements are pushed on to GitHub and then sent to SSC. So please check for newer versions!