Open thomasp85 opened 7 years ago
Is there any news about "non-hierarchical edge bundles?
I was having fun playing with ggraph package and I want to do that few minutes ago... but failed. ggraph do not support “edge bundles” when there is no hierarchical structure with data.
`graph <- as_tbl_graph(highschool) %>% mutate(Popularity = centrality_degree(mode = "in"))
form_to_df <- graph %>% activate(edges) %>% as.data.frame()
ggraph(graph, layout = "circle") + geom_node_point() + geom_conn_bundle( data = get_con(from = form_to_df$from, to = form_to_df$to), colour = "steelblue", width = 0.3, tension = 0.5 ) + coord_fixed() `
Is there any news about "non-hierarchical edge bundles?
I was having fun playing with ggraph package and I want to do that few minutes ago... but failed. ggraph do not support “edge bundles” when there is no hierarchical structure with data.
`graph <- as_tbl_graph(highschool) %>% mutate(Popularity = centrality_degree(mode = "in"))
form_to_df <- graph %>% activate(edges) %>% as.data.frame()
ggraph(graph, layout = "circle") + geom_node_point() + geom_conn_bundle( data = get_con(from = form_to_df$from, to = form_to_df$to), colour = "steelblue", width = 0.3, tension = 0.5 ) + coord_fixed() `