Layout as arc using the alter package.
layout_arc( g, sourceWeight = NULL, targetWeight = NULL, thickness = 0.05, marginRatio = 0.1 )
g | An object of class |
---|---|
sourceWeight, targetWeight | Bare name of column containing weights of source and target in the edges data.frame. |
thickness | Node height, between |
marginRatio | Space ratio, between |
ig <- igraph::erdos.renyi.game(100, 1 / 100) g2(ig, asp(x, y)) %>% layout_arc() %>% fig_edge(asp(color = source, shape = "arc"), opacity = .3) %>% fig_point(asp(color = id, shape = "circle", size = value)) %>% coord_type("polar") %>% coord_reflect("y") %>% axis_hide() g2(ig, asp(x, y)) %>% layout_arc() %>% fig_edge(asp(color = source, shape = "arc"), opacity = .3) %>% fig_point(asp(color = id, shape = "circle", size = value))