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)
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.
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.
| X | Y |
|---|---|
| 2 | 10 |
| 4 | 100 |
| 6 | 50 |
