% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rich-club.R
\name{plot.cograph_rich_club}
\alias{plot.cograph_rich_club}
\title{Plot Rich Club Results}
\usage{
\method{plot}{cograph_rich_club}(x, type = c("curve", "network"), k = NULL, col = "#E41A1C", ...)
}
\arguments{
\item{x}{A \code{cograph_rich_club} data frame.}

\item{type}{Character. \code{"curve"} (default) or \code{"network"}.}

\item{k}{Numeric. For \code{type = "network"}, the degree/strength
threshold to visualize. If NULL, uses the threshold with the highest
phi_norm (or phi if not normalized).}

\item{col}{Line/node color for rich club. Default \code{"#E41A1C"}.}

\item{...}{Additional arguments passed to \code{\link[graphics]{plot}}
(curve) or \code{\link{splot}} (network).}
}
\value{
Invisible \code{x}.
}
\description{
Two plot types: \code{"curve"} (default) shows the rich club coefficient
across thresholds with null model bands. \code{"network"} highlights rich
club members on the network at a given threshold.
}
\examples{
\dontshow{if (requireNamespace("igraph", quietly = TRUE)) withAutoprint(\{ # examplesIf}
g <- igraph::sample_pa(50, m = 2, directed = FALSE)
rc <- cograph::rich_club(g)
plot(rc)
\dontshow{\}) # examplesIf}
}
