% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-distributions.R
\name{plot_degree_correlation}
\alias{plot_degree_correlation}
\title{Plot Degree-Degree Correlation}
\usage{
plot_degree_correlation(
  x,
  mode = "all",
  directed = NULL,
  col = "steelblue",
  main = "Degree-Degree Correlation",
  ...
)
}
\arguments{
\item{x}{Network input: matrix, igraph, network, cograph_network, or tna.}

\item{mode}{Character. For directed networks: \code{"all"}, \code{"in"},
or \code{"out"}. Default \code{"all"}.}

\item{directed}{Logical or NULL. Default NULL (auto-detect).}

\item{col}{Point color. Default \code{"steelblue"}.}

\item{main}{Title. Default \code{"Degree-Degree Correlation"}.}

\item{...}{Additional arguments passed to \code{\link[graphics]{plot}}.}
}
\value{
Invisibly returns a data frame with columns \code{node},
\code{degree}, \code{avg_neighbor_degree}.
}
\description{
Scatter plot of each node's degree against the average degree of its
neighbors. Reveals assortative (positive slope) or disassortative
(negative slope) mixing patterns.
}
\examples{
\dontshow{if (requireNamespace("igraph", quietly = TRUE)) withAutoprint(\{ # examplesIf}
g <- igraph::sample_pa(100, m = 3, directed = FALSE)
cograph::plot_degree_correlation(g)
\dontshow{\}) # examplesIf}
}
\seealso{
\code{\link{centrality}}, \code{\link{degree_distribution}},
\code{\link{network_summary}}
}
