% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fit-distribution.R
\name{plot.cograph_degree_fit}
\alias{plot.cograph_degree_fit}
\title{Plot method for cograph_degree_fit}
\usage{
\method{plot}{cograph_degree_fit}(
  x,
  which = NULL,
  log = "",
  cols = NULL,
  lwd = 2,
  main = "Degree Distribution Fit",
  ...
)
}
\arguments{
\item{x}{A \code{cograph_degree_fit} object from
\code{\link{fit_degree_distribution}}.}

\item{which}{Character vector of distribution names to display. Default
\code{NULL} shows all fitted distributions.}

\item{log}{Character string for log-scale axes: \code{""} (default),
\code{"y"}, or \code{"xy"}. Values containing \code{"x"} are accepted
for compatibility but only filter non-positive fitted curve values.}

\item{cols}{Named or unnamed character vector of colors for distribution
curves. Default uses a built-in palette.}

\item{lwd}{Line width for fitted curves. Default 2.}

\item{main}{Plot title. Default \code{"Degree Distribution Fit"}.}

\item{...}{Additional arguments passed to \code{\link[graphics]{hist}}.}
}
\value{
Invisible \code{NULL}.
}
\description{
Overlays fitted distribution curves on a histogram of observed degrees.
}
\examples{
adj <- matrix(c(0, 1, 1, 0, 0, 1, 0, 1, 1, 0,
                1, 1, 0, 1, 1, 0, 1, 1, 0, 1,
                0, 0, 1, 1, 0), 5, 5, byrow = TRUE)
fit <- cograph::fit_degree_distribution(adj)
plot(fit)
}
