plot_dual_pools: Plot Dual-Pool Logistic Decomposition

View source: R/plot_dual_pools.R

plot_dual_poolsR Documentation

Plot Dual-Pool Logistic Decomposition

Description

Visualizes the rapid pool, slow pool, total predicted gas production, and observed gas production for a fitted dual-pool logistic model.

Usage

plot_dual_pools(fit, head = NULL, treatment = NULL)

Arguments

fit

A dual_logistic_fit object.

head

Optional bottle identifier. If supplied, only that bottle will be plotted.

treatment

Optional treatment name. If supplied, a representative bottle from that treatment will be plotted.

Details

The plot helps interpret the relative contributions of rapidly and slowly fermentable fractions through time.

Components displayed include:

  • Observed gas production

  • Predicted total gas production

  • Rapid fermentation pool

  • Slow fermentation pool

This visualization is useful for understanding substrate heterogeneity and fermentation dynamics.

Value

A ggplot2 object.

See Also

fit_dual_logistic, plot_fit, plot_residuals

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_dual_logistic(
  gp
)

plot_dual_pools(
  fit,
  head = 1
)


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