How to make a circular graph (node connections)?

Respuestas (2)

Steven Lord
Steven Lord el 7 de Jul. de 2020

0 votos

Use the layout function to layout your digraph using the 'circle' layout.

1 comentario

Akshar Agarwal
Akshar Agarwal el 9 de Jul. de 2020
That's not really what I meant. Is there a way to make the chord diagram "prettier", like the example provided? I currently have to do this in R but it'd be nice to have it all in Matlab.

Iniciar sesión para comentar.

Kelly Kearney
Kelly Kearney el 9 de Jul. de 2020

0 votos

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.

Categorías

Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 7 de Jul. de 2020

Respondida:

el 9 de Jul. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by