thomasp85/ggraph

Exterior Edge Routing

オープン

#303 opened on 2021/10/27

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)R (114 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (1,115 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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/

コントリビューターガイド