有没有办法在R中绘制具有更大边缘长度的图形? 我只是使用 library(igraph) plot(graph) 是否有人知道为什么所有边缘的长度都不同? ** V1 V2 1 6 1 2 6 5 3 1 0 4 1 6 5 1 385 6 5 4 7 5 6 8 5 98 9 0 1 10 0 2 我有这种格式的数据,并正在生成网络图。
你可以尝试以下几个方法:你可以改变你的图表边距:par(mar=c(0,0,0,0)) plot(graph) 您可以通过查阅igraph文档中的布局来更改布局参数,以实现以下功能: test.layout <- layout_(g,with_dh(weight.edge.lengths = edge_density(g)/1000)) plot(g, layout = test.layout)