Maps

Maps place data on geography, shading regions by a value or marking points and routes on a projected world.

LLMs

GeoJSON shapes

Pass geoShape any GeoJSON features with a geoIdentity projection to draw plain shapes, here the rooms of a building floor plan.

World choropleth

Set color to a value per country with a scaleThreshold to shade each one into five fixed bands over a gray land layer.

Quantized choropleth

Use scaleQuantize instead of fixed thresholds to split population density into six equal bands, with an outline on every country.

Bubble map

Give geoShape point features and an r channel with a square root rScale to size a circle on each country by its population.

Route map

Draw a LineString feature over detailed land and a graticule to trace a route across the world, here the voyage of the Beagle.

Globe

Use geoOrthographic with a rotate to show the earth as a tilted globe, with an ocean fill, graticule lines and land on top.

Projections

Build one map per projection with facetChart, to compare Equal Earth, Natural Earth, Mercator and Equirectangular side by side.

US counties

Project counties with geoAlbersUsa and shade them with a scaleQuantile of unemployment rates, with state borders drawn on top.