View source: R/plot_model_comparison_treatment.R
| plot_model_comparison_treatment | R Documentation |
Displays observed and predicted gas production values for multiple fitted models across all replicates of a selected treatment.
plot_model_comparison_treatment(..., treatment)
... |
Fitted model objects. |
treatment |
Treatment name. |
Observed measurements are displayed alongside model predictions, allowing visual comparison of competing kinetic models within a treatment.
This visualization is useful for:
Comparing competing models
Evaluating model performance by treatment
Assessing agreement among biological replicates
Identifying systematic prediction errors
A ggplot2 object.
compare_models_by_treatment,
plot_model_comparison,
plot_model_comparison_all,
fit_groot,
fit_gompertz
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_treatment(
Groot = groot_fit,
Gompertz = gompertz_fit,
treatment = unique(
gp$Treatment
)[1]
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.