View source: R/plot_all_treatment_means.R
| plot_all_treatment_means | R Documentation |
Compares observed and predicted treatment means across multiple fitted models.
plot_all_treatment_means(..., show_se = TRUE)
... |
Fitted model objects. |
show_se |
Logical. If |
The observed treatment mean is shown as a black line with optional standard-error bands. Predicted treatment means from each fitted model are overlaid for comparison.
This visualization is useful for evaluating model performance at the treatment level rather than at the individual bottle level.
A ggplot2 object.
plot_treatment_mean,
compare_models,
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_all_treatment_means(
Groot = groot_fit,
Gompertz = gompertz_fit
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.