Skip to main content

Module tilemap

Module tilemap 

Source
Expand description

Tile-grid cartograms: geom_tilemap. Each row is one equal-size tile (square, hexagon, circle or diamond) at grid position x (column) / y (row, 0 = top), filled by fill and labelled by label — e.g. US states or EU countries as a hex map. The grid is fitted into the panel with one uniform scale, so tiles stay regular at any aspect ratio.

Structs§

GeomTilemap
Tile map. Map x (grid column), y (grid row, 0 at the top), fill and label.

Enums§

TileShape
Tile shape.

Functions§

us_state_grid
A common square tile layout of the 50 US states + DC: (abbreviation, column, row) with row 0 at the top — join it to your data by state and map x = column, y = row.