Scatter plot of each node's degree against the average degree of its
neighbors. Reveals assortative (positive slope) or disassortative
(negative slope) mixing patterns.
Usage
plot_degree_correlation(
x,
mode = "all",
directed = NULL,
col = "steelblue",
main = "Degree-Degree Correlation",
...
)
Value
Invisibly returns a data frame with columns node,
degree, avg_neighbor_degree.
Arguments
x
Network input: matrix, igraph, network, cograph_network, or tna.
mode
Character. For directed networks: "all", "in",
or "out". Default "all".