Session Ready
Exercise

Filter important ties

As networks get larger, the plots can become messy and difficult to understand. One way to deal with this is to filter out some parts that aren't interesting. For example, in order to concentrate on the most important chains of relationships, you can filter out ties with small betweenness values.

In this exercise, you will filter for ties with a betweenness value larger than the median betweenness. This will remove half of the ties from the visualization, leaving only the important ties.

The network g is already loaded in the workspace, and a plot of the network with ties weighted by betweenness is shown.

Instructions
100 XP
  • Calculate the median of the edge betweenness as median_betweenness. Recall that you can access edge attributes using E(g)$some_attribute.
  • Update the network plot. In the aesthetics of the edge link geometry, add a filter condition only ties with betweenness larger than the median betweenness.