Drawing edges

geom_edge_link() draws straight lines (edges) between the connected nodes (under the hood: splits up the line in a bunch of small fragments.)

  • geom_edge_link()
  • geom_edge_link2()
  • geom_edge_fan()
  • geom_edge_parallel()
  • geom_edge_elbow()
    • geom_edge_bend()
    • geom_edge_diagonal()

Getting Started guide to edges

The after_stat(index):

set.seed(123)
ggraph(hs_graph, layout = "stress") + 
  geom_edge_link(aes(alpha = after_stat(index)))