Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exterior Edge Routing #303

Open
markushlang opened this issue Oct 27, 2021 · 1 comment
Open

Exterior Edge Routing #303

markushlang opened this issue Oct 27, 2021 · 1 comment

Comments

@markushlang
Copy link

I wondered whether it would be possible to implement something like "exterior edge routing" to improve the readability of graphs created with the hierarchical edge bundling technique; e.g.

flaregraph <- graph_from_data_frame(flare$edges, vertices = flare$vertices)

from <- match(flare$imports$from, flare$vertices$name)
to <- match(flare$imports$to, flare$vertices$name)

ggraph(flaregraph, layout = 'dendrogram', circular = TRUE) + 
    geom_conn_bundle(data = get_con(from = from, to = to), alpha = 0.1) + 
    coord_fixed()

The idea would be to route edges that are part of the same group around the exterior of a "connected circle".

This has, for instance, been used to visualize trade agreements between countries in different "trading blocks":
http://ftavis.com/

@thomasp85
Copy link
Owner

I would be happy to review a PR that provided this functionality but otherwise I'm afraid I won't have the bandwidth to look into it myself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants