% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/core-periphery.R
\name{plot.cograph_core_periphery}
\alias{plot.cograph_core_periphery}
\title{Plot Core-Periphery Structure}
\usage{
\method{plot}{cograph_core_periphery}(
  x,
  core_color = "#E41A1C",
  periphery_color = "#377EB8",
  core_size = 12,
  periphery_size = 6,
  ...
)
}
\arguments{
\item{x}{A \code{cograph_core_periphery} object from
\code{\link{core_periphery}}.}

\item{core_color}{Color for core nodes. Default \code{"#E41A1C"}.}

\item{periphery_color}{Color for periphery nodes. Default \code{"#377EB8"}.}

\item{core_size}{Numeric size for core nodes. Default 12.}

\item{periphery_size}{Numeric size for periphery nodes. Default 6.}

\item{...}{Additional arguments passed to \code{\link{splot}}.}
}
\value{
Invisible \code{x}.
}
\description{
Visualizes the network with core nodes highlighted (larger, red) and
periphery nodes de-emphasized (smaller, blue).
}
\examples{
adj <- matrix(c(0,1,1,1,0, 1,0,1,1,0, 1,1,0,1,1,
                1,1,1,0,1, 0,0,1,1,0), 5, 5)
rownames(adj) <- colnames(adj) <- LETTERS[1:5]
cp <- cograph::core_periphery(adj)
plot(cp)
}
