Application

As an exercise, now we’ll analyze a network of retweets. This data comes from our PLOS ONE paper, and it consists on the retweets of tweets mentioning “minimum wage” in the first 20 days of February 2014.

Just like earlier, we’ll start reading the data in R:

Note that the network here is directed!

Now let’s try to answer some basic questions:

Who were the users that retweeted the most? And the users that were most retweeted?

Who are the users with the highest levels of centrality?

How many components are there in this network? Do you think it makes sense to keep the giant component?

Now run a community detection algorithm. Note that this may take a while! How many communities do you find? You can then run head(table(membership(comm))) to see how many users are in the first 6 communities. What does it tell you?