How to make a circular graph (node connections)?
33 views (last 30 days)
Show older comments
I've got my data formatted for use with the digraph plots, but I'd like it to look more like this: https://i.pinimg.com/originals/c6/1c/a2/c61ca29de6c768fe048eca1fe3b48afc.png
Any ideas?
0 Comments
Answers (2)
Kelly Kearney
on 9 Jul 2020
The short answer is that you can indeed make these in Matlab, but it's not simple.
You basically need to recreate the calculations for edge paths from d3's chord diagram layout code (R's chorddiag is a wrapper around that library), then plot said paths as either line or patch objects (I prefer patches because they make it easier to customize the edge width and color and add transparency).
Alternatively, you can code it in javascript and render it in an html window via Matlab's web command. Definitely not for the faint of heart... :-)
I could probably demonstrate (the all-Matlab version) if you have a simple example dataset.
0 Comments
See Also
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!