I would like some help getting started in creating a network in igraph in R
.
My data looks like this:
data <- data.frame(Country = c("Argentina", "Bolivia", "Chile", "France", "Guam", "US"), Counts = c(2,8,1,5,3,35))
Where the counts column is the count of how many times these countries appeared in a specific search.
Every tutorial I am reading on igraph has a way to graph nodes and edges. With edges usually containing a from and to column. But in this dataset, the countries are not linked. I just need help getting this code started. I have included a picture on what my end result should look like - with the thickness of the lines being proportional to the counts column. Is this possible?