igraph - plotting directed network creates triangular edges

大憨熊 提交于 2019-12-24 04:17:08

问题


I'm trying to plot a directed network that will simply have a thin edge and an arrow. I keep getting an edge that looks triangular. How can I get a simple line and an arrow?

vertice1 <- c("a", "b", "c")
vertice2 <- c("d", "e", "f")

edge.list <- data.frame(vertice1, vertice2)

g <- graph_from_data_frame(d = edge.list, directed=TRUE)

plot(g)

Directed Network with Triangular Edges


回答1:


I am not getting the triangle that you got, but I feel certain that is just a large arrow head on the links. Try,

plot(g, edge.arrow.size = 0.5)


来源:https://stackoverflow.com/questions/50687588/igraph-plotting-directed-network-creates-triangular-edges

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!