Skip to contents

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).

Usage

MapRow(location = character(0), value = integer(0), extras = NULL)

Arguments

location

Character: Raw location key (FIPS / ISO / name) before normalization. Normalization to the canonical geometry id happens in the renderer.

value

Numeric: The value that colors the region.

extras

Optional named list: Extra column values to show in the tooltip, keyed by column name.

Value

MapRow object.

Examples

MapRow(location = "USA", value = 25.5)
#> <rtemis.draw::MapRow>
#>  @ location: chr "USA"
#>  @ value   : num 25.5
#>  @ extras  : NULL