View source: R/plot_diagnostics.R
| plot_diagnostics | R Documentation |
Creates diagnostic histograms for a fitted model.
plot_diagnostics(fit)
fit |
A fitted model object. |
Diagnostic plots can be used to assess:
Residual distributions
Parameter estimates
Model fit quality
Potential outliers
These plots are useful for evaluating whether model assumptions appear reasonable and for identifying problematic fits.
A named list of ggplot2 objects.
plot_fit,
plot_residuals,
flag_model,
fit_groot
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_groot(
gp
)
plot_diagnostics(
fit
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.