Search code examples
rigraphgephi

Geo layout in igraph


I am wondering if there is a geo-layout to plot the network in igraph as the geo-layout in gephi. If not, how can I plot my nodes according to their latitude and longitude?

https://gephi.org/2010/map-geocoded-data-with-gephi/ is the web page for that layout. [I don't think it does great circles, but it has a small choice of projections]


Solution

  • You'll need to convert your latitude and longitude to numeric coordinates (see e.g. this question, and simply use a two-column matrix with the coordinates as the layout argument of plot.igraph().