首页 > 解决方案 > plot.igraph 参数被忽略

问题描述

我正在尝试使用igraphR 中的包绘制图表。奇怪的是,前两个参数 (vertex.coloredge.arrow.size) 有效,但我从igraph.plotting文档中包含的其他参数 (如label) 被忽略了。在此示例中,标签应该从节点中消失,但它们不会,使用plotplot.igraph

知道为什么它不起作用吗?

library(igraph)

g<-make_full_graph(5) %du% make_full_graph(5) %du% make_full_graph(5)
g<-add_edges(g,c(1,6,1,11,6,11))

plot(g,vertex.color=c(rep("blue",5),rep("red",5),rep("yellow",5)),edge.arrow.size=0.2,label=NA)

标签: rplotigraph

解决方案


推荐阅读