# Normal Q–Q plot

> Use a normal Q–Q plot to compare ordered observations with normal quantiles and reveal skew or unusual tails.

- Data type: Many values of one measure (`spread`)
- Free (MIT): install with `npx chartreuse add normal-qq`, or registry item `/r/normal-qq.json`
- Example: **One deep earthquake bends the depth distribution** (Depths of the 10 earthquakes of magnitude 7 or higher in 2024, km)
- How to read it: Dots close to the quartile reference line suggest a normal distribution; bends and distant dots show departures.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9, 1:1, 4:5, 9:16 (best 4:5)

## Use it when
- checking the shape of one numeric sample against a normal distribution
- looking for skew, heavy tails or unusual observations
- you have at least two observations, ideally 10 to 200

## Avoid it when
- you need a formal normality test or a confidence band
- comparing two empirical samples (use a two-sample Q–Q plot)
- you need frequencies in bins (use a histogram)

## Fields (data.json)
- `label` (category): the observation name, shown on hover or tap
- `value` (number, unit "km", format decimal): the observed measurement; signed values are supported

Units are the example's: with your own data, set each number field's `unit` and `format` (percent, count, decimal, currency, compact) in the meta you pass to mount, or `chartreuse render --unit field=text --format field=count`. Scales and labels follow your data.

## Interactions, motion, sound
- hover or tap a dot to read its observation, measured value and normal quantile
- Motion: Dots fade into their final positions once when the chart comes into view.
- Sound: One soft appearance sound on entry; hover or tap plays a note by order. Quiet between events; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "normal-qq",
  "title": "One deep earthquake bends the depth distribution",
  "subtitle": "Depths of the 10 earthquakes of magnitude 7 or higher in 2024, km",
  "data": "/charts/normal-qq.data.json"
}
```

## Source
2024 earthquakes of magnitude 7 or higher: event depths, US Geological Survey (USGS), ANSS Comprehensive Earthquake Catalog (Public domain (USGS-produced data)), retrieved 2026-12-05: https://earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&starttime=2024-01-01&endtime=2025-01-01&minmagnitude=7&orderby=time-asc

Note: All 10 matching events in the fetched USGS catalogue; this selected sample does not describe all earthquakes. Depths are copied without rounding. Normal positions use Filliben order statistic medians; the reference line joins the sample quartiles and is not a fitted physical model or a test of normality.

Inspired by: [Normal probability plot](https://www.itl.nist.gov/div898/handbook/eda/section3/normprpl.htm), NIST/SEMATECH e-Handbook of Statistical Methods (linked, not copied).

Live: /charts/normal-qq · Manifest: /charts/normal-qq.json · Tags: normal, Q–Q, quantile, probability plot, distribution, skew, tails
