Relationship

Scatterplot with marginal distributions

Combines a scatterplot with separate X and Y distribution summaries at its margins.

  • Plot
  • Relationship
  • Distribution

What it answers

How do the relationship and separate distributions relate?

Shape
Central scatterplot and edge plots
What it shows
Association, skew and marginal outliers.

Example

The question

How do order size and delivery distance relate, and how is each spread?

Order value against distance, with histograms on the edges (illustrative)

Order value against distance, with histograms on the edges (illustrative)Central scatter of 70 orders; the histogram on top shows distances, the one on the right order values. Most orders are within 50 km and worth 60 to 100 euros; longer trips tend to bring larger orders.Order value (EUR) against distance040801201600255075100Distance (km)
Order value against distance, with histograms on the edges (illustrative)Central scatter of 70 orders; the histogram on top shows distances, the one on the right order values. Most orders are within 50 km and worth 60 to 100 euros; longer trips tend to bring larger orders.Order value (EUR) against distance040801201600255075100Distance (km)
Central scatter of 70 orders; the histogram on top shows distances, the one on the right order values. Most orders are within 50 km and worth 60 to 100 euros; longer trips tend to bring larger orders.

Illustrative data. It belongs to no company.

When to use it

Use it when

Understanding joint structure and each variable's spread together.

Avoid it when

When small panels or inconsistent axes make alignment confusing.

How to read it

Read the central scatter, then each aligned marginal plot.

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

Points(2,10),(4,100),(6,50). Marginal X spans 2-6; marginal Y spans 10-100. The central plot shows which values pair together.

XY
210
4100
650