Plot outputs from a legacy-compatible workflow run
Source:R/facets_mode_methods.R
plot.mfrm_facets_run.RdPlot outputs from a legacy-compatible workflow run
Arguments
- x
A
mfrm_facets_runobject fromrun_mfrm_facets().- y
Unused.
- type
Plot route:
"fit"delegates toplot.mfrm_fit()and"qc"delegates toplot_qc_dashboard().- ...
Additional arguments passed to the selected plot function.
Details
This method is a router for fast visualization from a one-shot workflow result:
type = "fit"for model-level displays.type = "qc"for multi-panel quality-control diagnostics.
Interpreting output
Returns the plotting object produced by the delegated route:
plot.mfrm_fit() for "fit" and plot_qc_dashboard() for "qc".
Typical workflow
Run
run_mfrm_facets().Start with
plot(out, type = "fit", draw = FALSE).Continue with
plot(out, type = "qc", draw = FALSE)for diagnostics.
Examples
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 = 10
)
#> Warning: Optimizer did not fully converge (code = 1). Consider increasing maxit (current: 10) or relaxing reltol (current: 1e-06).
p_fit <- plot(out, type = "fit", draw = FALSE)
class(p_fit)
#> [1] "mfrm_plot_bundle" "list"
p_qc <- plot(out, type = "qc", draw = FALSE)
class(p_qc)
#> [1] "mfrm_plot_data" "list"