Skip to contents

Plot outputs from a legacy-compatible workflow run

Usage

# S3 method for class 'mfrm_facets_run'
plot(x, y = NULL, type = c("fit", "qc"), ...)

Arguments

x

A mfrm_facets_run object from run_mfrm_facets().

y

Unused.

type

Plot route: "fit" delegates to plot.mfrm_fit() and "qc" delegates to plot_qc_dashboard().

...

Additional arguments passed to the selected plot function.

Value

A plotting object from the delegated plot route.

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

  1. Run run_mfrm_facets().

  2. Start with plot(out, type = "fit", draw = FALSE).

  3. 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"