我想绘制没有顶点的igraph
对象。由于顶点数量过多,仅指定vertex.color = "white"
并不会带来太大帮助,因为顶点重叠。 vertex.size = 0
绘制小顶点,请参见左侧的图1。我试过了vertex.size = (-1)
会产生错误:
Error in symbols(x = coords[, 1], y = coords[, 2], bg = vertex.color, :
invalid symbol parameter
尽管它在右侧的以下图2中未绘制任何顶点(或者它们是如此之小以至于不可见?)>
图1和2
] >>数据和代码:
g <- make_ring(10) plot(g,vertex.size = 0) # plot 1 plot(g,vertex.size = (-1)) # plot 2
我想绘制一个没有顶点的igraph对象。简单地指定vertex.color =“ white”并没有多大帮助,因为顶点数量很多,因此顶点重叠。 vertex.size = 0个图...
我认为可以使用多个顶点选项来实现您想要的目标:
library(igraph)
#>
#> Attaching package: 'igraph'
#> The following objects are masked from 'package:stats':
#>
#> decompose, spectrum
#> The following object is masked from 'package:base':
#>
#> union
g <- make_ring(10)
plot(g,
vertex.shape = 'none',
vertex.size = 0,
vertex.label= NA)