Reputation: 1
I have data which show vaccine developers, buyers and doses/capita(I adjusted as weight). How can I define vaccine developers and buyers as nodes and doses weight as edge. Also how can I manipulate thickness of edges according to weight. I am new at Igraph so thank you for your help.
Dataset: https://drive.google.com/file/d/1iJRLXBKTKhvVzX0lMsWngkHYQ263AxdY/view?usp=sharing
Upvotes: 0
Views: 1414
Reputation: 101753
You can use edge.width
within plot
, e.g.,
g <- graph_from_data_frame(df)
plot(g,edge.width = E(g)$Weight)
Upvotes: 1