View source: R/plot-distributions.R
| plot_degree_correlation | R Documentation |
Scatter plot of each node's degree against the average degree of its neighbors. Reveals assortative (positive slope) or disassortative (negative slope) mixing patterns.
plot_degree_correlation(
x,
mode = "all",
directed = NULL,
col = "steelblue",
main = "Degree-Degree Correlation",
...
)
x |
Network input: matrix, igraph, network, cograph_network, or tna. |
mode |
Character. For directed networks: |
directed |
Logical or NULL. Default NULL (auto-detect). |
col |
Point color. Default |
main |
Title. Default |
... |
Additional arguments passed to |
Invisibly returns a data frame with columns node,
degree, avg_neighbor_degree.
centrality, degree_distribution,
network_summary
g <- igraph::sample_pa(100, m = 3, directed = FALSE)
cograph::plot_degree_correlation(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.