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

Getting ready

 If you worked through the previous recipes in this chapter, you should have the data file,  retweet-graph.Rdataand ensure that it is in your R working directory. If not, you should download these data files and place them in your R working directory. As of now, R doesn't provide any package that supports the yifan hu algorithm, so we will use the graph data from R and leverage Gephi (a popular graph visualization tool) to apply YiFan Hu layout over the data. 

Make sure to download and install Gephi (https://gephi.org/users/download/) on your system.

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