R/map.R
MapRow.Rd
One region's datum in a choropleth: a raw location key, the numeric value that colors the region, and optional extra fields to surface in the tooltip. The R analog of the MapRow TypeScript interface in rtemislive (~/Code/live/src/lib/types.ts).
MapRow
~/Code/live/src/lib/types.ts
MapRow(location = character(0), value = integer(0), extras = NULL)
Character: Raw location key (FIPS / ISO / name) before normalization. Normalization to the canonical geometry id happens in the renderer.
Numeric: The value that colors the region.
Optional named list: Extra column values to show in the tooltip, keyed by column name.
MapRow object.
MapRow(location = "USA", value = 25.5)
#> <rtemis.draw::MapRow> #> @ location: chr "USA" #> @ value : num 25.5 #> @ extras : NULL