View source: R/plot_dual_pools.R
| plot_dual_pools | R Documentation |
Visualizes the rapid pool, slow pool, total predicted gas production, and observed gas production for a fitted dual-pool logistic model.
plot_dual_pools(fit, head = NULL, treatment = NULL)
fit |
A |
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. |
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.
A ggplot2 object.
fit_dual_logistic,
plot_fit,
plot_residuals
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.