Two panels side by side: the study area's zones filled by their target fire return interval, and the same geometry filled by achieved/target ratio on a diverging scale centred on 1.

landmine_plot_fri_zones(
  lthfc,
  metrics,
  studyAreaName,
  caption = NULL,
  maxCells = 5e+05
)

Arguments

lthfc

SpatRaster of target fire return intervals.

metrics

the data.table from landmine_fri_metrics().

studyAreaName

character, used in the title.

caption

optional character; defaults to landmine_fri_verdict().

maxCells

display resampling budget passed to tidyterra::geom_spatraster(); the default keeps a full-resolution study area readable without rendering every cell.

Value

A patchwork object (which prints and ggsaves like a ggplot).

Details

The two panels encode different things and therefore carry separate fill scales: panel A is a magnitude (one hue, light to dark), panel B a polarity (two hues either side of a neutral midpoint). Putting both in one faceted plot would force a single shared scale, on which the log-ratios – which span about one unit – collapse entirely against target intervals spanning 170 years, rendering panel B a flat block of colour.

Panel B's fill is log2(ratio) so that burning twice as often and half as often sit equally far from centre, with the legend labelled in plain ratios.