{
  "version_doi": "10.5281/zenodo.22983324",
  "collection_doi": "10.5281/zenodo.22967792",
  "rows": 2207,
  "known_ages": 2205,
  "survived": 711,
  "died": 1496,
  "missing_ages": 2,
  "empty_age_class_cells": 12,
  "max_cell_n": 124,
  "kde_bandwidth": 3.0,
  "violin_width_factor": 8.4932885520728,
  "classes": [
    "1st",
    "2nd",
    "3rd",
    "Crew"
  ],
  "recipes": [
    {
      "key": "counts",
      "title": "People aboard by class and crew",
      "file": "classes.tsv",
      "x": [
        0.5,
        4.5
      ],
      "y": [
        0,
        1000
      ],
      "xticks": [
        1,
        2,
        3,
        4
      ],
      "yticks": [
        0,
        200,
        400,
        600,
        800,
        1000
      ],
      "categorical": "x",
      "xlabel": "Passenger class / crew",
      "ylabel": "People",
      "legend": "aboard",
      "definition": "All 2,207 people; counts include unknown ages."
    },
    {
      "key": "stacked",
      "title": "Stacked survival counts",
      "file": "classes.tsv",
      "x": [
        0.5,
        4.5
      ],
      "y": [
        0,
        1000
      ],
      "xticks": [
        1,
        2,
        3,
        4
      ],
      "yticks": [
        0,
        200,
        400,
        600,
        800,
        1000
      ],
      "categorical": "x",
      "xlabel": "Passenger class / crew",
      "ylabel": "People",
      "legend": "outcome",
      "definition": "Survived plus did not survive equals each group total."
    },
    {
      "key": "proportions",
      "title": "Survival proportions within groups",
      "file": "classes.tsv",
      "x": [
        0.5,
        4.5
      ],
      "y": [
        0,
        100
      ],
      "xticks": [
        1,
        2,
        3,
        4
      ],
      "yticks": [
        0,
        25,
        50,
        75,
        100
      ],
      "categorical": "x",
      "xlabel": "Passenger class / crew",
      "ylabel": "Share (%)",
      "legend": "outcome",
      "definition": "Each bar has its own class/crew denominator; n labels retain group sizes."
    },
    {
      "key": "grouped",
      "title": "Survival by recorded sex and group",
      "file": "classes.tsv",
      "x": [
        0.5,
        4.5
      ],
      "y": [
        0,
        100
      ],
      "xticks": [
        1,
        2,
        3,
        4
      ],
      "yticks": [
        0,
        25,
        50,
        75,
        100
      ],
      "categorical": "x",
      "xlabel": "Passenger class / crew",
      "ylabel": "Survived (%)",
      "legend": "sex",
      "definition": "Female and male categories include children. Labels show the eight denominators, including only 23 female crew."
    },
    {
      "key": "dumbbell",
      "title": "A dumbbell comparison of survival",
      "file": "classes.tsv",
      "x": [
        0,
        100
      ],
      "y": [
        0.5,
        4.5
      ],
      "xticks": [
        0,
        25,
        50,
        75,
        100
      ],
      "yticks": [
        1,
        2,
        3,
        4
      ],
      "categorical": "y",
      "xlabel": "Survived (%)",
      "ylabel": "Group",
      "legend": "sex",
      "definition": "The same eight rates as the grouped bars, joined within each group. Dots do not imply a causal effect."
    },
    {
      "key": "histogram",
      "title": "Age distribution in three-year bins",
      "file": "ages.tsv",
      "x": [
        0,
        75
      ],
      "y": [
        0,
        300
      ],
      "xticks": [
        0,
        15,
        30,
        45,
        60,
        75
      ],
      "yticks": [
        0,
        50,
        100,
        150,
        200,
        250,
        300
      ],
      "categorical": "",
      "xlabel": "Age (years)",
      "ylabel": "People",
      "legend": "known",
      "definition": "Known ages only: n=2,205. Bins are [0,3), [3,6), ... [72,75); fractional ages are not rounded."
    },
    {
      "key": "ecdf",
      "title": "The empirical cumulative age distribution",
      "file": "ecdf.tsv",
      "x": [
        0,
        75
      ],
      "y": [
        0,
        1
      ],
      "xticks": [
        0,
        15,
        30,
        45,
        60,
        75
      ],
      "yticks": [
        0,
        0.25,
        0.5,
        0.75,
        1
      ],
      "categorical": "",
      "xlabel": "Age (years)",
      "ylabel": "Cumulative fraction",
      "legend": "known",
      "definition": "Right-continuous ECDF of all 2,205 known ages. Shared vertices group tied ages and make step conventions identical."
    },
    {
      "key": "box",
      "title": "Five-number age summaries",
      "file": "boxes.tsv",
      "x": [
        0.5,
        4.5
      ],
      "y": [
        0,
        75
      ],
      "xticks": [
        1,
        2,
        3,
        4
      ],
      "yticks": [
        0,
        15,
        30,
        45,
        60,
        75
      ],
      "categorical": "x",
      "xlabel": "Passenger class / crew",
      "ylabel": "Age (years)",
      "legend": "box",
      "definition": "Whiskers are minimum and maximum. Quartiles use linear interpolation at p*(n-1); no automatic outlier rule is applied."
    },
    {
      "key": "violin",
      "title": "Violin densities with a shared bandwidth",
      "file": "violin-1.tsv",
      "x": [
        0.5,
        4.5
      ],
      "y": [
        0,
        75
      ],
      "xticks": [
        1,
        2,
        3,
        4
      ],
      "yticks": [
        0,
        15,
        30,
        45,
        60,
        75
      ],
      "categorical": "x",
      "xlabel": "Passenger class / crew",
      "ylabel": "Age (years)",
      "legend": "violin",
      "definition": "Gaussian KDE, bandwidth 3 years, equal area per group and one common width factor. Curves are displayed over ages 0–75."
    },
    {
      "key": "heatmap",
      "title": "Survival across age bands and groups",
      "file": "cells.tsv",
      "x": [
        0,
        75
      ],
      "y": [
        0.5,
        4.5
      ],
      "xticks": [
        0,
        15,
        30,
        45,
        60,
        75
      ],
      "yticks": [
        1,
        2,
        3,
        4
      ],
      "categorical": "y",
      "xlabel": "Age band (years)",
      "ylabel": "Group",
      "legend": "colour",
      "definition": "Cells use identical three-year bands and group denominators. Twelve n=0 cells are grey, not zero-percent survival."
    },
    {
      "key": "bubble",
      "title": "Add sample size to the survival grid",
      "file": "cells.tsv",
      "x": [
        0,
        75
      ],
      "y": [
        0.5,
        4.5
      ],
      "xticks": [
        0,
        15,
        30,
        45,
        60,
        75
      ],
      "yticks": [
        1,
        2,
        3,
        4
      ],
      "categorical": "y",
      "xlabel": "Age band (years)",
      "ylabel": "Group",
      "legend": "bubble",
      "definition": "Colour shows survival percentage; circle area is proportional to n. Empty cells are omitted; diameter is 14*sqrt(n/max_n) points."
    },
    {
      "key": "facets",
      "title": "Age counts as four small multiples",
      "file": "ages.tsv",
      "x": [
        0,
        75
      ],
      "y": [
        0,
        200
      ],
      "xticks": [
        0,
        25,
        50,
        75
      ],
      "yticks": [
        0,
        50,
        100,
        150,
        200
      ],
      "categorical": "",
      "xlabel": "Age (years)",
      "ylabel": "People",
      "legend": "facets",
      "definition": "Four panels share the same age bins and a 0–200 count scale. Each panel represents one passenger class or crew membership."
    }
  ],
  "columns": {
    "classes.tsv": [
      "class_index",
      "aboard",
      "survived",
      "died",
      "survival_pct",
      "female_n",
      "female_survived",
      "female_pct",
      "male_n",
      "male_survived",
      "male_pct",
      "known_age_n"
    ],
    "boxes.tsv": [
      "class_index",
      "min",
      "q1",
      "median",
      "q3",
      "max",
      "known_age_n"
    ],
    "ages.tsv": [
      "centre_years",
      "left",
      "right",
      "known_n",
      "survivors",
      "survival_pct",
      "first_n",
      "second_n",
      "third_n",
      "crew_n"
    ],
    "cells.tsv": [
      "age_centre",
      "class_y",
      "survival_pct_or_minus_one",
      "known_n",
      "survivors",
      "diameter_bp"
    ],
    "ecdf.tsv": [
      "age_years",
      "cumulative_fraction"
    ],
    "density.tsv": [
      "age_years",
      "first_density",
      "second_density",
      "third_density",
      "crew_density"
    ],
    "violin-1.tsv": [
      "class_offset",
      "age_years"
    ],
    "violin-2.tsv": [
      "class_offset",
      "age_years"
    ],
    "violin-3.tsv": [
      "class_offset",
      "age_years"
    ],
    "violin-4.tsv": [
      "class_offset",
      "age_years"
    ]
  }
}
