You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Function to plot a sankey flow chart with any number of layers and categories.
Based on the contribution of @RomanKuster based in turn on the contribution from @RanranWang, improves them by:
- Accepting matrix as well as tables with categorical values as input data.
- Customizable colors (both colormaps or customized matrix).
- Category labels, layer labels, percentages and legend are switchable.
See demo for data examples.
Cite As
Carlos Borau (2026). Sankey flow chart (https://uk.mathworks.com/matlabcentral/fileexchange/101516-sankey-flow-chart), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Sankey Diagram, Sankey Plot / Alluvial Flow Diagram
General Information
- Version 1.0.1 (5.37 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
