Re:Visualizing Facebook Friends: Eye Candy in R
by niggler on Tuesday February 12, 2013 @03:36PM
(#5209340)
Did he ever release the commands he used to generate the plot?
[ Parent
| on HN ]
Re:Visualizing Facebook Friends: Eye Candy in R
by paulgb on Tuesday February 12, 2013 @07:05PM
(#5210453)
I wasn't able to release the original code as it belonged to Facebook, but Nathan Yao wrote a great blog post covering how to do make a similar map (including code): http://flowingdata.com/2011/05/11/how-to-map-connections-wit...
To be honest, 80% of the code was getting the data into the right shape and the other 20% was a slow implementation of the great circle calculations (I didn't know about the geosphere package so I rolled my own). Nathan's code is better.