% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/compare_network.R
\name{plot.net_comparison}
\alias{plot.net_comparison}
\title{Plot a network comparison}
\usage{
\method{plot}{net_comparison}(
  x,
  type = c("scatter", "heatmap", "diff_hist", "weight_dist", "all"),
  combined = TRUE,
  ...
)
}
\arguments{
\item{x}{A \code{net_comparison} object from \code{\link[=compare_model]{compare_model()}}.}

\item{type}{Character. One of \code{"scatter"} (default - edge-weight scatter
with OLS fit and correlation overlay), \code{"heatmap"} (n by n grid of
x - y differences using the diverging palette), \code{"diff_hist"}
(histogram of |x - y| absolute differences with rug + density),
\code{"weight_dist"} (overlaid distributions of |x| and |y| edge weights),
or \code{"all"} (2 by 2 grid of all four panels; requires the gridExtra
package).}

\item{combined}{When \code{type = "all"} and \code{combined = TRUE} (default),
the four panels are stitched into a 2x2 gtable. When \code{FALSE}, returns
a named list of the four ggplots so each can be printed, saved, or
re-laid-out independently. Ignored for other \code{type} values.}

\item{...}{Ignored.}
}
\value{
A \code{ggplot} object; for \code{type = "all"} with \code{combined = TRUE}
a \code{gtable} arranged 2 by 2; for \code{type = "all"} with \code{combined = FALSE}
a named list of four ggplots.
}
\description{
Visualises a \code{net_comparison} object. Currently supports the edge-weight
scatterplot (default), with the diagonal reference (perfect agreement)
and the OLS regression line annotated by Pearson, Spearman, and Kendall
correlations.
}
