O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required