plot_all_fits: Plot All Fitted Curves

View source: R/plot_all_fits.R

plot_all_fitsR Documentation

Plot All Fitted Curves

Description

Displays observed and predicted gas production values for all bottles in a fitted model.

Usage

plot_all_fits(fit)

Arguments

fit

A fitted model object produced by one of the rumenGP model-fitting functions.

Details

Each panel corresponds to a single bottle and shows:

  • Observed gas production values

  • Model predictions

This plot is useful for quickly evaluating model performance across all bottles in a dataset.

Value

A ggplot2 object.

See Also

plot_fit, plot_residuals, 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_all_fits(
  fit
)


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