plot_degree_vs_disparity: Visualise node disparities as a function of node degree

Description Usage Arguments Value Author(s) References Examples

Description

Given an undirected weighted network and node disparities precomputed with function get_node_disparity, generates a ggplot comparing node disparities as a function of node degree. Reference lines for null disparities, perfect node homogeneity and perfect node heterogeneity are also shown.

Usage

1
plot_degree_vs_disparity(net, node_disp)

Arguments

net

igraph; An undirected weighted network.

node_disp

numeric; Numeric vector of length vcount(net) with the disparity measure of each node in the network.

Value

A ggplot comparing node disparities as a function of node degree.

Author(s)

Gregorio Alanis-Lobato galanisl@uni-mainz.de

References

Serrano, M. A. et al. (2009) Extracting the multiscale backbone of complex weighted networks. PNAS 106(16).

Examples

1
2
3
4
# Compute the disparity of the nodes in the included US Airports network
disp <- get_node_disparity(net = air)
# Plot degree vs disparities
p <- plot_degree_vs_disparity(net = air, node_disp = disp)

galanisl/DisparityFilter documentation built on May 16, 2019, 5:36 p.m.