% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zplot.R
\name{zplot.brma}
\alias{zplot.brma}
\alias{zplot}
\alias{zplot.zplot_brma}
\title{Plot Zplot Diagnostics Directly}
\usage{
\method{zplot}{brma}(
  object,
  significance_level = stats::qnorm(0.975),
  summary_max_samples = 10000,
  ...
)

\method{zplot}{zplot_brma}(object, ...)
}
\arguments{
\item{object}{a normal-outcome \code{brma} object, or a
\code{zplot_brma} object.}

\item{significance_level}{z-value threshold for significance. Defaults
to \code{qnorm(0.975)} (two-sided alpha = 0.05).}

\item{summary_max_samples}{maximum number of posterior samples used for the
EDR and missing-study summaries stored in the generated zplot object.
This is separate from the plot-density \code{max_samples} argument accepted
by \code{plot.zplot_brma()} through \code{...}. Defaults to 10000. Use
\code{Inf} to use all posterior samples.}

\item{...}{arguments passed to \code{\link[=plot.zplot_brma]{plot.zplot_brma()}}.}
}
\value{
\code{NULL} invisibly for base graphics, or a ggplot2 object.
}
\description{
Convenience wrapper for creating and plotting zplot diagnostics
from a fitted \code{brma} object.
}
\details{
When \code{object} already inherits from \code{zplot_brma},
\code{zplot()} dispatches directly to \code{plot.zplot_brma()} without
recomputing stored summaries.
}
\examples{
\dontrun{
if (requireNamespace("metadat", quietly = TRUE)) {
  data(dat.lehmann2018, package = "metadat")
  fit <- bPET(yi = yi, vi = vi, data = dat.lehmann2018, measure = "SMD")

  zplot(fit)
}
}

}
\seealso{
\code{\link[=as_zplot.brma]{as_zplot.brma()}}, \code{\link[=plot.zplot_brma]{plot.zplot_brma()}}, \code{\link[=summary.zplot_brma]{summary.zplot_brma()}}
}
