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. A positive slope indicates assortative mixing and a negative slope indicates disassortative mixing. When more than two nodes have neighbors, a least-squares line is added and the Pearson correlation is printed in the top margin.
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. Degree type and neighborhood used for directed
networks: |
directed |
Logical or NULL. Default NULL (auto-detect). |
col |
Point color. Default |
main |
Title. Default |
... |
Additional arguments passed to |
Invisibly, a data frame with one row per node and columns
node, degree and avg_neighbor_degree. The
average neighbor degree is NA for nodes without neighbors.
centrality, degree_distribution,
network_summary
cograph::plot_degree_correlation(student_interactions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.