Relationship

Hexbin plot

Aggregates dense XY observations into hexagons coloured by count or another statistic.

  • Plot
  • Relationship
  • Density

What it answers

Where are paired observations concentrated?

Shape
Coloured hexagonal bins
What it shows
Clusters and spatial concentration in numeric coordinates.

Example

The question

Where do most trips fall by distance and fare?

Taxi trips by distance and fare, count per hexagon (illustrative)

Taxi trips by distance and fare, count per hexagon (illustrative)Hexagons coloured by number of trips; pink means most. Trips cluster at 3 to 8 km and 10 to 22 euros, along a band where fare rises with distance.Fare (EUR)0102030400481216Distance (km)Trips per hexagon123
Taxi trips by distance and fare, count per hexagon (illustrative)Hexagons coloured by number of trips; pink means most. Trips cluster at 3 to 8 km and 10 to 22 euros, along a band where fare rises with distance.Fare (EUR)0102030400481216Distance (km)
Hexagons coloured by number of trips; pink means most. Trips cluster at 3 to 8 km and 10 to 22 euros, along a band where fare rises with distance.

Illustrative data. It belongs to no company.

When to use it

Use it when

Dense scatter data with substantial overlap.

Avoid it when

Sparse data or bin resolution that hides important structure.

How to read it

Read hexagon position, then its count or statistic from the colour key.

Note

Define resolution and aggregation.

The data you need

Layout
Long table
Fields
X: number; Y: number
One row is
One observation with paired numeric measurements. What is the grain?
Rules
X and Y must refer to the same observation. Do not independently sort either column.
Optional
Optional ID,Group,Weight. Binning and smoothing settings belong to chart configuration.
Preparation
Align measurements by observation ID, select relevant variables and handle missingness. Scale or standardise only where the analytical method requires it.
Units
State the unit of every coordinate/variable. A unitless transformed or standardised scale must be identified; no common denominator is assumed.
Example of the input layout: Long tableA long table: one row per observation, few columns. New data adds rows.XYAABBC
A long table: one row per observation, few columns. New data adds rows.

Worked example

Suppose one hexagon contains 30 points and another 5. Colour by count. The first contains six times as many observations.

XY
210
4100
650