I am currently working on a project where I need to create a circular Sankey chart in R, similar in appearance to the transformative maps used by the World Economic Forum. Is there a solution available for this?
A small example of the type of data I am using would look like this:
| Point_from (Inner circle) | Point_to (Outer Circle) | Value | Info |
|---|---|---|---|
| A | D | 1 | BLUE |
| A | E | 1 | BLUE |
| B | E | 3 | GREEN |
| B | F | 1 | BLUE |
| C | G | 1 | BLUE |
In this example, we have points connected by values (strength of the connection), and each connection has a one extra indicator associated with it (information on the link - to be explored in an interactive manner).
If anyone has any insights, R code examples, or recommendations for packages in R that would be suitable for creating a circular Sankey chart like this, I would greatly appreciate your help.
Thank you in advance :)
I was not able to find any solution with suitable outputs, neither material online/tutorials explaining how it can be done. I wasn't able to make the sankey chart scrip from networkD3 circular. Another option would be to do a network analysis, maybe? But I wasn't able to position the points in a circular manner (the base of the network graph was done using this example https://ladal.edu.au/net.html ).
It seems that you are looking for a circular graph. You could use the
tidygraphandggraphecosystem to generate something like this:Data from question in reproducible format