本文介绍了igraph-绘制有向网络将创建三角形边缘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试绘制有方向的网络,该网络将仅具有细边和箭头.我不断得到看起来像三角形的边缘.如何获得一条简单的线和一个箭头?

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)

具有三角形边缘的定向网络

推荐答案

我没有得到您所得到的三角形,但是我确信这只是链接上的一个大箭头.尝试

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)

这篇关于igraph-绘制有向网络将创建三角形边缘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 10:37