% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bayes_compare.R
\name{plot.net_bayes}
\alias{plot.net_bayes}
\title{Plot method for net_bayes}
\usage{
\method{plot}{net_bayes}(x, significant_only = TRUE, title = NULL, ...)
}
\arguments{
\item{x}{A \code{net_bayes} object.}

\item{significant_only}{Logical. Show only credibly-different edges
(default \code{TRUE}).}

\item{title}{Optional plot title.}

\item{...}{Additional arguments passed to \code{cograph::splot()} when
cograph is available.}
}
\value{
Invisibly, the cograph network returned by \code{cograph::splot()}
when cograph is available; otherwise a fallback \code{ggplot} object.
}
\description{
Draws a differential transition network as a directed chord diagram.
Edge colour encodes the signed posterior mean difference (\code{x}
stronger vs \code{y} stronger) and edge width its magnitude.
}
\examples{
\donttest{
s1 <- data.frame(V1 = c("A","B","C"), V2 = c("B","C","A"))
s2 <- data.frame(V1 = c("A","C","B"), V2 = c("C","B","A"))
b <- bayes_compare(build_network(s1, method = "relative"),
                   build_network(s2, method = "relative"),
                   draws = 500, seed = 1)
plot(b, significant_only = FALSE)
}
}
