% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/centrality_measures.R
\name{plot.net_edge_betweenness}
\alias{plot.net_edge_betweenness}
\title{Plot edge-betweenness scores}
\usage{
\method{plot}{net_edge_betweenness}(x, style = c("bar", "forest", "delta"), top_n = NULL, labels = TRUE, ...)
}
\arguments{
\item{x}{A \code{net_edge_betweenness} network from
\code{\link{net_edge_betweenness}}.}

\item{style}{Plot style. \code{"bar"} (default) draws one horizontal bar
per edge; \code{"forest"} draws a forest/lollipop chart (a stem from
zero to a point) with a dashed reference line at the mean betweenness;
\code{"delta"} draws each edge's deviation from the mean edge betweenness
as a diverging bar (above the mean in blue, below in red).}

\item{top_n}{Integer or \code{NULL}. Keep only the \code{top_n} highest
edges. Default \code{NULL} (all edges with non-zero betweenness).}

\item{labels}{Logical. Print the betweenness value beside each edge.
Default \code{TRUE}.}

\item{...}{Additional arguments (ignored).}
}
\value{
A \code{ggplot} object.
}
\description{
Draws the edges of a \code{\link{net_edge_betweenness}} network ranked by
their betweenness, as a horizontal bar chart. This is the tidy,
cograph-free companion to the node-link diagram: render the diagram with
\code{cograph::splot(eb)} and the ranking with \code{plot(eb)}.
}
\examples{
seqs <- data.frame(
  V1 = c("A","B","A","C"), V2 = c("B","C","B","A"),
  V3 = c("C","A","C","B"))
eb <- net_edge_betweenness(build_network(seqs, method = "relative"))
plot(eb)
plot(eb, style = "forest")
plot(eb, style = "delta")
}
