我有数据显示疫苗开发商、购买者和剂量/人均(我根据体重进行了调整)。我如何将疫苗开发商和购买者定义为节点,将剂量权重定义为边缘。另外我如何根据重量操纵边缘的厚度。我是 Igraph 的新手,感谢您的帮助。
数据集:https://drive.google.com/file/d/1iJRLXBKTKhvVzX0lMsWngkHYQ263AxdY/view?usp=sharing
答案 0 :(得分:1)
您可以在 edge.width
中使用 plot
,例如,
g <- graph_from_data_frame(df)
plot(g,edge.width = E(g)$Weight)