% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality_stability.R
\name{plot.net_stability}
\alias{plot.net_stability}
\title{Plot Method for net_stability}
\usage{
\method{plot}{net_stability}(x, ...)
}
\arguments{
\item{x}{A \code{net_stability} object.}

\item{...}{Additional arguments (ignored).}
}
\value{
A \code{ggplot} object (invisibly).
}
\description{
Plots mean correlation vs drop proportion for each centrality measure.
The CS-coefficient is marked where the curve crosses the threshold.
}
\examples{
net <- build_network(data.frame(V1 = c("A","B","C","A"),
  V2 = c("B","C","A","B")), method = "relative")
cs <- centrality_stability(net, iter = 10, drop_prop = 0.3)
plot(cs)
\donttest{
set.seed(1)
seqs <- data.frame(
  V1 = sample(c("A","B","C"), 30, TRUE),
  V2 = sample(c("A","B","C"), 30, TRUE),
  V3 = sample(c("A","B","C"), 30, TRUE)
)
net <- build_network(seqs, method = "relative")
stab <- centrality_stability(net, measures = c("InStrength","OutStrength"),
                              iter = 10)
plot(stab)
}

}
