Description Usage Arguments Value Author(s) References Examples
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.
1 | plot_degree_vs_disparity(net, node_disp)
|
net |
igraph; An undirected weighted network. |
node_disp |
numeric; Numeric vector of length |
A ggplot comparing node disparities as a function of node degree.
Gregorio Alanis-Lobato galanisl@uni-mainz.de
Serrano, M. A. et al. (2009) Extracting the multiscale backbone of complex weighted networks. PNAS 106(16).
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.