briatte / ggnetwork

Geoms to plot networks with ggplot2
https://briatte.github.io/ggnetwork/
146 stars 28 forks source link

Support `igraph` layouts natively? #40

Closed briatte closed 5 years ago

briatte commented 5 years ago
library(igraph)
library(ggnetwork)

n <- igraph::random.graph.game(10, 0.3)
E(n)$weight <- sample(c(1, 2), igraph::gsize(n), replace = TRUE)

# layout_*