How to do it...

To compute important network metrics, follow these steps:

  1. Load the reTweet graph data and save it in the graphml format (which we will use to import in Gephi):
> load("retweet-graph.Rdata") > write.graph(reTweets_graph, "reTweet_graph.graphml", format="graphml")
  1. Next, load the reTweet_graph.graphml file in Gephi, File | Open...:
  1. Now the reTweet graph data will be loaded in the graph panel of Gephi:
  1. In the Layout panel, click on the drop-down menu that says Choose a layout, and from the drop-down menu, select Yifan Hu ...

Get R Data Analysis Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.