{
  "id": "scatter-matrix",
  "name": "Scatter matrix",
  "family": "relationships",
  "tier": "free",
  "summary": "Use a scatter matrix to see the shape of every pairwise relationship in a handful of measures at once, and follow one item through all of them.",
  "title": "Past $15,000 a head, nearly every country has electricity for everyone",
  "subtitle": "Five development measures for 174 countries, 2022; each small panel pairs two of them",
  "howToRead": "Below the diagonal each panel is a scatter of its row against its column; above it is the r for the same pair; the diagonal shows each measure's spread.",
  "useWhen": [
    "3 to 6 measures and you want every pair's shape, not just one number",
    "relationships may be curved, clustered or capped",
    "you want to follow one item across all pairs"
  ],
  "avoidWhen": [
    "more than about 6 measures (only the first 6 are drawn; use a correlation heatmap first)",
    "readers need one clear message (pick the one scatter that carries it)",
    "small screens with thousands of items"
  ],
  "fields": [
    {
      "name": "country",
      "type": "category",
      "description": "the item, one row each; every other number column is a measure (2 to 6)"
    },
    {
      "name": "gdp",
      "series": true,
      "type": "number",
      "description": "GDP per person, PPP, constant 2021 international $",
      "unit": "USD",
      "format": "currency"
    },
    {
      "name": "electricity",
      "series": true,
      "type": "number",
      "description": "share of people with electricity, %",
      "unit": "%",
      "format": "percent"
    },
    {
      "name": "internet",
      "series": true,
      "type": "number",
      "description": "share of people using the internet, %",
      "unit": "%",
      "format": "percent"
    },
    {
      "name": "lifeExp",
      "series": true,
      "type": "number",
      "description": "life expectancy at birth, years",
      "unit": "years",
      "format": "decimal"
    },
    {
      "name": "fertility",
      "series": true,
      "type": "number",
      "description": "births per woman",
      "unit": "births per woman",
      "format": "decimal"
    }
  ],
  "hints": {
    "xLine": 15000,
    "xLineUnit": "USD",
    "item": "country",
    "items": "countries",
    "names": {
      "gdp": "GDP per person",
      "electricity": "Electricity access",
      "internet": "Internet users",
      "lifeExp": "Life expectancy",
      "fertility": "Fertility rate"
    },
    "short": {
      "gdp": "GDP",
      "electricity": "Electricity",
      "internet": "Internet",
      "lifeExp": "Life exp.",
      "fertility": "Fertility"
    },
    "log": [
      "gdp"
    ],
    "count": {
      "key": "electricity",
      "atLeast": 99.5,
      "note": "have electricity for at least {v} of people"
    }
  },
  "interactions": [
    "hover or tap a dot to read it and ring the same country in every panel"
  ],
  "motion": "The panels fade in one after another, top left to bottom right.",
  "sound": "A pop on hover pitched by row. Quiet while it draws and between steps; mute it from its card.",
  "annotations": [
    {
      "type": "underline",
      "words": "$15,000",
      "in": "title"
    }
  ],
  "tags": [
    "splom",
    "scatter plot matrix",
    "pairs plot",
    "many measures",
    "linked highlighting",
    "development",
    "electricity"
  ],
  "mobile": "adapts",
  "mobileNote": "Draws its own phone layout below 520px",
  "mobileChecked": "2026-12-02",
  "ratios": [
    "16:9"
  ],
  "bestRatio": "9:16",
  "source": {
    "title": "World Development Indicators (NY.GDP.PCAP.PP.KD, EG.ELC.ACCS.ZS, IT.NET.USER.ZS, SP.DYN.LE00.IN, SP.DYN.TFRT.IN)",
    "publisher": "World Bank",
    "url": "https://data.worldbank.org/indicator",
    "license": "CC BY 4.0",
    "retrieved": "2026-12-01"
  },
  "note": "87 of the 95 countries above $15,000 per person have electricity for at least 99.5% of people. r is Pearson's, with GDP on a log scale. The Central African Republic is left out: its 2022 values are a lone outlier in this release."
}