Maps

Hexbin / hexagonal aggregation map

Aggregates locations or values into hexagonal geographic bins.

  • Map
  • Geography
  • Aggregation

What it answers

How do quantities vary across equal grid cells?

Shape
Hexagonal spatial cells
What it shows
Local concentrations and gradients.

Example

The question

Where do online orders come from, in even-sized areas?

Online orders per hexagon, 2025 (hexbin map)

Online orders per hexagon, 2025 (hexbin map)Equal-sized hexagons cover the country, coloured by online orders. Orders are highest around the north-centre city and fade towards the edges.Orders per hexagonFewerMore
Online orders per hexagon, 2025 (hexbin map)Equal-sized hexagons cover the country, coloured by online orders. Orders are highest around the north-centre city and fade towards the edges.
Equal-sized hexagons cover the country, coloured by online orders. Orders are highest around the north-centre city and fade towards the edges.

Illustrative data. It belongs to no company.

When to use it

Use it when

Spatial comparison without administrative-boundary variation.

Avoid it when

When cell resolution or projection is unspecified.

How to read it

Read hexagon location and the aggregate legend.

Note

Specify resolution and the statistic encoded.

The data you need

Layout
Long table
Fields
LocationID: text; Longitude,Latitude: numbers; Value: nonnegative number
One row is
One point location and its value or weight. What is the grain?
Rules
State CRS. For WGS84, longitude is [-180,180] and latitude [-90,90]. Validate coordinate order.
Optional
For unweighted density, each point may have weight 1. Project coordinates appropriately for distance calculations.
Preparation
Validate the input grain and missing values. State CRS. For WGS84, longitude is [-180,180] and latitude [-90,90]. Validate coordinate order.
Units
Count, sum, rate or density percell must be labelled; density divides by cell area.
Example of the input layout: Long tableA long table: one row per observation, few columns. New data adds rows.LocationIDLongitudeLatitudeValueAABBC
A long table: one row per observation, few columns. New data adds rows.

Worked example

Two hexagons contain 30 and 5 events. At the same resolution, the first has six times the count.

LocationIDLongitudeLatitudeValue
A18.0759.3330
B11.9757.7145