A choropleth of whether a value is present, rather than what it is. The
companion to audit_coverage(), which reports the same thing as a table: a
world map with a large well-covered region and a systematically empty one is
telling you something about the indicator that the headline map hides behind
a uniform grey.
Arguments
- data
A map-ready frame (polygon or
sf).- value
The column whose availability to map (unquoted).
- by
Optional grouping column for a panel: with a
yearcolumn, useby = yearto see coverage change over time.- title
Optional plot title (defaults to a generated one).
- ...
Passed to
world_map().
Backend
Either backend, as world_map(): the frame decides, and both draw in Equal
Earth unless projection is passed on through ....
Examples
# \donttest{
snap <- countryatlas::world_snapshot$countries
attach_geometry(snap, geometry = "polygon") |>
coverage_map(gdp_per_capita)
# }
