Produce calibration plots from a RiskMap.spatial.cv object returned by
assess_pp.
* For Binomial or Poisson models the function visualises the
Aggregated normalised Probability Integral Transform (AnPIT)
curves stored in $AnPIT.
* For Gaussian models it detects the list $PIT and instead plots
the empirical Probability Integral Transform curve
(ECDF of PIT values) on the same \(u\)-grid.
A 45° dashed red line indicates perfect calibration.
plot_AnPIT(
object,
mode = "average",
test_set = NULL,
model_name = NULL,
combine_panels = FALSE
)A ggplot2 object (single plot) or a ggpubr grid.
A RiskMap.spatial.cv object.
One of "average" (average curve across test sets),
"single" (a specific test set),
or "all" (every test set separately).
Integer; required when mode = "single".
Optional character string; if supplied, only that model is plotted.
Logical; when mode = "average", draw
all models in a single panel (TRUE)
or one panel per model (FALSE, default).