ggraph network plot: specify node coordinates
问题 Trying to plot a network with the ggraph package and specify the coordinates of each node. While I can implement this with the igraph package - I cannot do this with the ggraph package. # reproducible example to generate a random graph library(igraph) g1 <- erdos.renyi.game(20, 1/2) plot(g1) # function to produce coordinates for each node in order of the node # degree (number of links per node) coord <- function(g){ n.nod <- length(V(g)) mat.c <- matrix(0, nrow = n.nod, ncol = 2) deg <-