% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/facets_mode_methods.R
\name{plot.mfrm_facets_run}
\alias{plot.mfrm_facets_run}
\title{Plot outputs from a legacy-compatible workflow run}
\usage{
\method{plot}{mfrm_facets_run}(x, y = NULL, type = c("fit", "qc"), ...)
}
\arguments{
\item{x}{A \code{mfrm_facets_run} object from \code{\link[=run_mfrm_facets]{run_mfrm_facets()}}.}

\item{y}{Unused.}

\item{type}{Plot route: \code{"fit"} delegates to \code{\link[=plot.mfrm_fit]{plot.mfrm_fit()}} and \code{"qc"}
delegates to \code{\link[=plot_qc_dashboard]{plot_qc_dashboard()}}.}

\item{...}{Additional arguments passed to the selected plot function.}
}
\value{
A plotting object from the delegated plot route.
}
\description{
Plot outputs from a legacy-compatible workflow run
}
\details{
This method is a router for fast visualization from a one-shot workflow
result:
\itemize{
\item \code{type = "fit"} for model-level displays.
\item \code{type = "qc"} for multi-panel quality-control diagnostics.
}
}
\section{Interpreting output}{

Returns the plotting object produced by the delegated route:
\code{\link[=plot.mfrm_fit]{plot.mfrm_fit()}} for \code{"fit"} and \code{\link[=plot_qc_dashboard]{plot_qc_dashboard()}} for \code{"qc"}.
}

\section{Typical workflow}{

\enumerate{
\item Run \code{\link[=run_mfrm_facets]{run_mfrm_facets()}}.
\item Start with \code{plot(out, type = "fit", draw = FALSE)}.
\item Continue with \code{plot(out, type = "qc", draw = FALSE)} for diagnostics.
}
}

\examples{
\donttest{
toy <- load_mfrmr_data("example_core")
toy_small <- toy[toy$Person \%in\% unique(toy$Person)[1:12], , drop = FALSE]
out <- run_mfrm_facets(
  data = toy_small,
  person = "Person",
  facets = c("Rater", "Criterion"),
  score = "Score",
  maxit = 30
)
p_fit <- plot(out, type = "fit", draw = FALSE)
p_fit$wright_map$data$plot
p_qc <- plot(out, type = "qc", draw = FALSE)
p_qc$data$plot
}

}
\seealso{
\code{\link[=run_mfrm_facets]{run_mfrm_facets()}}, \code{\link[=plot.mfrm_fit]{plot.mfrm_fit()}}, \code{\link[=plot_qc_dashboard]{plot_qc_dashboard()}},
\link{mfrmr_visual_diagnostics}, \link{mfrmr_workflow_methods}
}
