在世界地图上可视化网络 [英] Visualize network above a world map
问题描述
好吧,我在NodeXL中有一个网络数据集,我试图在世界地图上将其可视化。我的数据集包含
我尝试使用NodeXL并导出文件并导入Gephi。但是,我找不到在节点属性的基础上在世界地图上将其可视化的方法。
另外,我知道D3.js,但找不到任何示例或教程与地图上的网络。
您可以在NodeXL,Gephi,D3.js或任何其他库中为我提供示例来执行此操作。
想象一下这样的结果:
Plugins安装它们):
您可以按顺序使用两者 - 尽管坦率地说,我已经使用GeoLayout获得更多成功,将结果导出为矢量图形,并将其叠加在地图图像上。如果你的网络很大,并且在整个地理区域内传播得很好,你甚至不需要将它覆盖在地图上 - 它已经看起来像一个。例如,在上面公布的Facebook可视化中,各大洲的轮廓仅基于节点/用户集中的位置而出现。
Well I have a network dataset in NodeXL and I am trying to visualize it on a world map. My dataset has
- Nodes with an attribute of a country
- Links. Unweighted connections between the nodes
I tried to do it with NodeXL and exporting the file and importing to Gephi. But, I cannot find a way to visualize it on a world map in base of the attribute of nodes.
Also, I know about D3.js but I cannot find any example or tutorial with networks on maps.
Can you please provide me with examples in NodeXL, Gephi, D3.js or any other library to do this.
Imagine the result something like this:
In Gephi, you can use a map-based layout to visualize your network based on node location. You need to have two attributes containing the geocoded coordinates of your nodes: latitude and longitude. There are two plugins you can use for the visualization (neither comes with Gephi by default, you have to install them from Tools -> Plugins):
- GeoLayout - when you apply that one, you have to specify the names of the attributes where longitude and latitude are recorded and select a projection (e.g. Mercator). Your nodes will be laid out accordingly.
- Map of countries - that's a plugin that displays a (fairly crude - not too detailed) outline map as a background to your network.
You can use both in sequence - though frankly I've had more success using GeoLayout, exporting the result to a vector graphic, an overlaying it on top of a map image. If your network is large and nicely spread across the geographic area, you won't even need to overlay it on a map - it will already look like one. In the Facebook visualization you've posted above for example, the outlines of continents emerge just based on where nodes/users are concentrated.
这篇关于在世界地图上可视化网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!