Author Archives: Markus Konrad

Linkdump #87

R
Python
Interesting articles, projects and news

Linkdump #86

R
Python
Interesting articles, projects and news

Linkdump #85

R
Python
Interesting articles, projects and news

Linkdump #84

R
Python
Interesting articles, projects and news

Linkdump #83

R
Python
Interesting articles, projects and news

Linkdump #82

R
Python
Interesting articles, projects and news

Linkdump #81

R
Python
Interesting articles, projects and news

Linkdump #80

R
Python
Interesting articles, projects and news

Linkdump #79

R
Python
Interesting articles, projects and news

Three ways of visualizing a graph on a map

When visualizing a network with nodes that refer to a geographic place, it is often useful to put these nodes on a map and draw the connections (edges) between them. By this, we can directly see the geographic distribution of nodes and their connections in our network. This is different to a traditional network plot, where the placement of the nodes depends on the layout algorithm that is used (which may for example form clusters of strongly interconnected nodes).

In this blog post, I’ll present three ways of visualizing network graphs on a map using R with the packages igraph, ggplot2 and optionally ggraph. Several properties of our graph should be visualized along with the positions on the map and the connections between them. Specifically, the size of a node on the map should reflect its degree, the width of an edge between two nodes should represent the weight (strength) of this connection (since we can’t use proximity to illustrate the strength of a connection when we place the nodes on a map), and the color of an edge should illustrate the type of connection (some categorical variable, e.g. a type of treaty between two international partners).

Read More →