plot_diagnostics: Plot Diagnostic Summaries

View source: R/plot_diagnostics.R

plot_diagnosticsR Documentation

Plot Diagnostic Summaries

Description

Creates diagnostic histograms for a fitted model.

Usage

plot_diagnostics(fit)

Arguments

fit

A fitted model object.

Details

Diagnostic plots can be used to assess:

  • Residual distributions

  • Parameter estimates

  • Model fit quality

  • Potential outliers

These plots are useful for evaluating whether model assumptions appear reasonable and for identifying problematic fits.

Value

A named list of ggplot2 objects.

See Also

plot_fit, plot_residuals, flag_model, fit_groot

Examples


files <- example_data()

raw_data <- read_ankom(
  files$ankom
)

metadata <- read_metadata(
  files$metadata
)

gp <- process_ankom(
  raw_data,
  metadata,
  headspace_ml = 210,
  temperature_c = 39
)

fit <- fit_groot(
  gp
)

plot_diagnostics(
  fit
)


rumenGP documentation built on Oct. 2, 2026, 5:09 p.m.