R/landmine-calibration-plot.R
landmine_calibration_plots.RdFigures for reporting what a fire-spread calibration achieved, and whether the objective can actually tell good parameters from bad. They take plain data frames so the same functions serve the module vignette, the project reports, and ad-hoc checks.
landmine_plot_calibShape(components, shapeRangeHa = c(10, 3000))
landmine_plot_calibIslands(components)
landmine_plot_calibDiscrimination(scores)
landmine_plot_calibParams(params, lower, upper)
landmine_plot_calibConvergence(deoptim)The "components" attribute of a landmine_optim_fitAndison() result: one
row per fire size (and replicate) with areaHa, shapeObs, shapeExp,
pctIslandsObs, pctIslandsExp.
Range Andison fitted the shape relationship over; shaded on the plot,
because the log10(AREA)^4 term extrapolates sharply outside it.
A data.frame with group (e.g. "fitted" / "random") and objective.
A matrix or data.frame of fitted parameter sets, one row per calibration run
(as returned by landmine_optim_params_read()).
Search bounds used for the fit, in the same parameter order.
A DEoptim result object (or its member$bestvalit vector).
a ggplot object.
landmine_plot_calibShape() – simulated shape index against Andison's fitted curve;
landmine_plot_calibIslands() – simulated remnant-island fraction against Andison Table 3.5;
landmine_plot_calibDiscrimination() – objective values for fitted vs random parameters;
landmine_plot_calibParams() – spread of repeat fits within the search bounds;
landmine_plot_calibConvergence() – DEoptim's best value against iteration, showing
whether the run had converged or was still improving when it stopped.