r - plot.igraph 参数被忽略
问题描述
我正在尝试使用igraph
R 中的包绘制图表。奇怪的是,前两个参数 (vertex.color
和edge.arrow.size
) 有效,但我从igraph.plotting
文档中包含的其他参数 (如label
) 被忽略了。在此示例中,标签应该从节点中消失,但它们不会,使用plot
或plot.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)
解决方案
推荐阅读
- javascript - Javascript - 如何混合具有特定排序顺序的两个对象数组?
- php - 用户登录未加载且未重定向到仪表板
- r - R TinyTeX 安装会干扰我电脑上的其他 LaTeX 安装吗
- python - 检查文件中的行是否包含Python中的大写字母
- ldap - Dcm4chee 与 ldap://ldap:389 的连接断开 - 重新连接错误
- docker - 将 Traefik 前端重定向替换与 PathPrefixStrip 相结合
- sql - SQL server 和 STUFF 有两个表
- sql-server - 从 xml 中提取对象到 SQL Server
- javascript - Office-add 在线侧载
- node.js - 通过节点提交表单,就像连接到站点一样