% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot.diagnostics}
\alias{plot.diagnostics}
\title{Plot diagnostics of a \code{remstimate} object}
\usage{
\method{plot}{diagnostics}(
  x,
  object = NULL,
  which = c(1:3),
  effects = NULL,
  sender_effects = NULL,
  receiver_effects = NULL,
  n_per_page = 4L,
  ...
)
}
\arguments{
\item{x}{a \code{diagnostics} object returned by \code{diagnostics()}.}

\item{object}{optional \code{remstimate} fit. Required for plots 4--5
(HMC posterior diagnostics); ignored otherwise.}

\item{which}{integer vector of plots to produce. Default \code{1:3} covers
waiting times, Schoenfeld residuals, and recall. Add \code{4} or \code{5}
for HMC posterior density and trace plots.}

\item{effects}{character vector of effect names to include (tie model).
\code{NULL} uses all available effects.}

\item{sender_effects}{character vector of sender-model effects (actor model).
Pass \code{NA} to skip the sender model entirely.}

\item{receiver_effects}{character vector of receiver-model effects (actor
model). Pass \code{NA} to skip the receiver model entirely.}

\item{n_per_page}{integer; maximum panels per page for multi-effect plots
(Schoenfeld, posterior density, trace). Default \code{4L} (2x2 grid).}

\item{...}{further graphical arguments (currently unused).}
}
\value{
\code{x} invisibly.
}
\description{
Produces diagnostic plots from an object returned by
  \code{diagnostics()}. Plot 1 (waiting-time Q-Q) and plot 2 (Schoenfeld
  residuals) are computed from the diagnostics object alone. Plot 3 (recall
  scatter) is also derived from the diagnostics object. Plots 4 and 5
  (posterior density and trace plots) are HMC-only and additionally require
  the original \code{remstimate} fit via \code{object}.
}
