R igraph - 指定顶点之间的最小空间

md1*_*630 5 r igraph

有没有办法在igraph中的两个顶点之间设置最小空间,以便顶点看起来不会被打碎?图表可以根据需要大小.

Dom*_*ois 2

可能有,但间接的方法是最小化 和vertex.size(如果需要)vertex.label.cex。使您的设备变得更大应该最大化节点之间的空间。

前任:

library(igraph)
my.graph <- graph.lattice(length = c(4,4), dim = 1, directed = FALSE)
plot(my.graph,
       layout = layout.grid,
       vertex.label=toupper(1:16),
       vertex.size = 20,
       vertex.shape = "square",
       vertex.color="white",
       vertex.frame.color= "black",
       vertex.label.color = "black",
       vertex.label.family = "sans",
       vertex.label.cex=1,
       edge.width=2,
       edge.color="black")
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述