Group 5 — Heart failure and Asia
Studio wall
1 Spine
Who dies after heart failure, who grew up poor in the GSS, and where in Asia is life short?
This sentence stays at the top. Every panel must attach to it. If a plot cannot be introduced in a clause that hangs off this line, it is off the wall.
2 Introduction — the tables we own
This folder is ours for the ten days. Three tables, three shapes.
- Panel A (
panel-A.csv) — heart-failure clinic file. 0/1 flags have been recoded to yes/no. Quants: age, ejection fraction, serum measures, time. - Panel B (
panel-B.csv) — GSS 1974–2002: ethnicity, city at 16, low income at 16, immigrant, plus years of education (Quant). - Panel C (
panel-C.csv) — gapminder 2007, Asia only. Stand-in for an NFHS / malaria map. India is one country row, not districts.
C is not a Bangalore street map. If we want feet-on-ground geography, that is a different brick (OSM), not this file.
We load from this folder:
library(readr)
library(tidyverse)
A <- read_csv("panel-A.csv")
B <- read_csv("panel-B.csv")
C <- read_csv("panel-C.csv")Found tables train the mark. A campus Free Hunch, if we collect one, is a made panel of the same pair type — new people, old grammar. It does not replace A, B, or C.
3 Panel A — body / measure
ejection_fraction, serum_creatinine, age are Quant. DEATH_EVENT, diabetes, smoking are Quals.
3.0.1 1. See the table
What is a case? Which columns are Quant / Qual? What is missing?
# glimpse() / inspect() / skim()3.0.2 2. Ask
One question this table can answer. One it cannot. Write both.
3.0.3 3. Choose a mark
Geom, map mark, or (later) test that matches the pair type. Name it before you code.
3.0.4 4. Predict
What do we think we will see? One sentence, before Run.
3.0.5 5. Make
Human brick first. Optional: one AI prompt, pasted below, only for what section 3 named.
# human chunk
# ## Prompt we actually used
# ai_draft
# ours3.0.6 6. Say
Caption + one sentence we will stand behind. Title is a sentence, not a column name.
3.0.7 7. Limit
What this panel cannot do. Which kit table we refused to abuse.
4 Panel B — category / talk
immigrant × lowincome16, ethnicity × city16. education is years — Quant. Do not average ethnicity.
4.0.1 1. See the table
What is a case? Which columns are Quant / Qual? What is missing?
# glimpse() / inspect() / skim()4.0.2 2. Ask
One question this table can answer. One it cannot. Write both.
4.0.3 3. Choose a mark
Geom, map mark, or (later) test that matches the pair type. Name it before you code.
4.0.4 4. Predict
What do we think we will see? One sentence, before Run.
4.0.5 5. Make
Human brick first. Optional: one AI prompt, pasted below, only for what section 3 named.
# human chunk
# ## Prompt we actually used
# ai_draft
# ours4.0.6 6. Say
Caption + one sentence we will stand behind. Title is a sentence, not a column name.
4.0.7 7. Limit
What this panel cannot do. Which kit table we refused to abuse.
5 Panel C — place
Asia-only lifeExp / gdpPercap / pop. Join to rnaturalearth; unmatched names are a brick.
Geometry is not in the CSV. Join in R, then use the same seven headings.
# library(sf)
# library(rnaturalearth)
# world <- ne_countries(scale = "medium", returnclass = "sf")
# # join on country name; list the unmatched labels5.0.1 1. See the table
What is a case? Which columns are Quant / Qual? What is missing?
# glimpse() / inspect() / skim()5.0.2 2. Ask
One question this table can answer. One it cannot. Write both.
5.0.3 3. Choose a mark
Geom, map mark, or (later) test that matches the pair type. Name it before you code.
5.0.4 4. Predict
What do we think we will see? One sentence, before Run.
5.0.5 5. Make
Human brick first. Optional: one AI prompt, pasted below, only for what section 3 named.
# human chunk
# ## Prompt we actually used
# ai_draft
# ours5.0.6 6. Say
Caption + one sentence we will stand behind. Title is a sentence, not a column name.
5.0.7 7. Limit
What this panel cannot do. Which kit table we refused to abuse.
6 Conclusion
What the spine looks like after three panels.
- The question we will defend in ninety seconds
- What we will not claim
- Which lines were human, which were machine
- Limits: sample, missingness, the test we did not run
- Gift for the steal-this strip (palette, annotation, join trick)
# sessionInfo()