plot_model_comparison: Compare Model Fits

View source: R/plot_model_comparison.R

plot_model_comparisonR Documentation

Compare Model Fits

Description

Displays observed gas production values together with predictions from multiple fitted models for a single bottle.

Usage

plot_model_comparison(..., head)

Arguments

...

Fitted model objects.

head

Head identifier.

Details

This visualization is useful for:

  • Comparing competing kinetic models

  • Evaluating model performance

  • Identifying differences among fitted curves

  • Assessing model agreement with observations

Observed measurements are displayed alongside predictions from each supplied model, allowing direct visual comparison.

Value

A ggplot2 object.

See Also

compare_models, plot_model_comparison_all, plot_model_comparison_treatment, fit_groot, fit_gompertz

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
)

groot_fit <- fit_groot(
  gp
)

gompertz_fit <- fit_gompertz(
  gp
)

plot_model_comparison(
  Groot = groot_fit,
  Gompertz = gompertz_fit,
  head = 1
)


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