---
title: "Traditional Park Amenities Are More Common in Cooler-Climate Cities"
subtitle: "Across five traditional park amenities, cooler-climate cities (Cold + Mixed-Humid) consistently provide more facilities per capita than warmer-climate cities (Hot-Humid + Hot-Dry). The pattern holds across all five amenities, with no exceptions"
description: "A dumbbell dot plot comparing per-capita park amenity provision across U.S. climate zones. Cooler-climate cities consistently provide more traditional recreation facilities per capita than warmer-climate cities across five independent amenity types, with differences ranging from 1.3x to 1.8x. Built in R with ggplot2, ggtext, and scales, following FDR-corrected significance testing."
date: "2026-07-13"
author:
- name: "Steven Ponce"
url: "https://stevenponce.netlify.app"
citation:
url: "https://stevenponce.netlify.app/data_visualizations/MakeoverMonday/2026/mm_2026_28.html"
categories: ["MakeoverMonday", "2026"]
tags: [
"makeover-monday",
"dumbbell-chart",
"dot-plot",
"parks-and-recreation",
"climate",
"urban-planning",
"per-capita",
"data-visualization",
"r-programming",
"ggplot2",
"ggtext",
"2026"
]
image: "thumbnails/mm_2026_28.png"
format:
html:
toc: true
toc-depth: 5
code-link: true
code-fold: true
code-tools: true
code-summary: "Show code"
editor_options:
chunk_output_type: inline
execute:
freeze: true
cache: true
error: false
message: false
warning: false
eval: true
---
```{r}
#| label: setup-links
#| include: false
# CENTRALIZED LINK MANAGEMENT
## Project-specific info
current_year <- 2026
current_week <- 28
project_file <- "mm_2026_28.qmd"
project_image <- "mm_2026_28.png"
## Data Sources
data_main <- "https://pub-cee805df54de4b6c8f93bee984e3c725.r2.dev/datasets/park-amenities/Amenities_Data__Clean.csv.zip"
data_secondary <- "https://www.tpl.org/city-park-facts"
## Repository Links
repo_main <- "https://github.com/poncest/personal-website/"
repo_file <- paste0("https://github.com/poncest/personal-website/blob/master/data_visualizations/MakeoverMonday/", current_year, "/", project_file)
## External Resources/Images
chart_original <- "https://raw.githubusercontent.com/poncest/MakeoverMonday/refs/heads/master/2026/Week_28_original_chart.png"
## Organization/Platform Links
org_primary <- "https://www.tpl.org/city-park-facts"
org_secondary <- "https://www.tpl.org/city-park-facts"
# Helper function to create markdown links
create_link <- function(text, url) {
paste0("[", text, "](", url, ")")
}
# Helper function for citation-style links
create_citation_link <- function(text, url, title = NULL) {
if (is.null(title)) {
paste0("[", text, "](", url, ")")
} else {
paste0("[", text, "](", url, ' "', title, '")')
}
}
```
### Original
The original visualization comes from `r create_link("Park & Recreation Amenities", data_secondary)`

### Makeover
{#fig-1}
### [**Steps to Create this Graphic**]{.mark}
#### [1. Load Packages & Setup]{.smallcaps}
```{r}
#| label: load
#| warning: false
#| message: false
#| results: "hide"
## 1. LOAD PACKAGES & SETUP ----
suppressPackageStartupMessages({
if (!require("pacman")) install.packages("pacman")
pacman::p_load(
tidyverse, ggtext, showtext, scales, glue,
janitor
)
})
### |- figure size ----
camcorder::gg_record(
dir = here::here("temp_plots"),
device = "png",
width = 10,
height = 7,
units = "in",
dpi = 320
)
# Source utility functions
suppressMessages(source(here::here("R/utils/fonts.R")))
source(here::here("R/utils/social_icons.R"))
source(here::here("R/utils/image_utils.R"))
source(here::here("R/themes/base_theme.R"))
```
#### [2. Read in the Data]{.smallcaps}
```{r}
#| label: read
#| include: true
#| eval: true
#| warning: false
#|
df_raw <- read_tsv(
here::here("data/MakeoverMonday/2026/Amenities_Data__Clean.csv"),
locale = locale(encoding = "UTF-16LE")
) |>
clean_names()
```
#### [3. Examine the Data]{.smallcaps}
```{r}
#| label: examine
#| include: true
#| eval: true
#| results: 'hide'
#| warning: false
glimpse(df_raw)
skimr::skim_without_charts(df_raw)
```
#### [4. Tidy Data]{.smallcaps}
```{r}
#| label: tidy
#| warning: false
### |- pivot measures wide ----
df_wide <- df_raw |>
pivot_wider(
names_from = measure_names,
values_from = measure_values
)
### |- restrict to climate zones with adequate sample size ----
usable_zones <- df_raw |>
distinct(city, climate_zone) |>
filter(!is.na(climate_zone)) |>
count(climate_zone) |>
filter(n >= 10) |>
pull(climate_zone)
### |- the 5 amenities that survived FDR correction in Phase 0 ----
sig_amenities <- c(
"Outdoor tennis courts, dedicated",
"Basketball Hoops (Includes schoolyards)",
"Combined fields and diamonds",
"Baseball and Softball Diamonds",
"Playgrounds (includes schoolyards)"
)
### |- analysis-ready subset with cooler/warmer grouping ----
df_climate <- df_wide |>
filter(amenity_type %in% sig_amenities, climate_zone %in% usable_zones) |>
mutate(
climate_zone = factor(climate_zone,
levels = c("Cold", "Mixed-Humid", "Hot-Humid", "Hot-Dry")
),
climate_group = if_else(
climate_zone %in% c("Cold", "Mixed-Humid"),
"Cooler", "Warmer"
)
)
### |- short display labels ----
amenity_labels <- c(
"Basketball Hoops (Includes schoolyards)" = "Basketball Hoops",
"Outdoor tennis courts, dedicated" = "Tennis Courts",
"Playgrounds (includes schoolyards)" = "Playgrounds",
"Baseball and Softball Diamonds" = "Baseball & Softball",
"Combined fields and diamonds" = "Combined Fields"
)
### |- individual zone medians ----
plot_data_zones_raw <- df_climate |>
group_by(amenity_type, climate_zone, climate_group) |>
summarise(median_pc = median(`Per Capita (10k)`, na.rm = TRUE), .groups = "drop")
### |- cooler/warmer group averages ----
group_avg_data <- plot_data_zones_raw |>
group_by(amenity_type, climate_group) |>
summarise(group_avg = mean(median_pc), .groups = "drop")
### |- effect size + row order, computed from group_avg_data only ----
effect_order <- group_avg_data |>
pivot_wider(names_from = climate_group, values_from = group_avg) |>
mutate(
ratio = Cooler / Warmer,
abs_diff = Cooler - Warmer,
pct_diff = (Cooler - Warmer) / Warmer * 100,
magnitude = (Cooler + Warmer) / 2
) |>
arrange(desc(magnitude))
amenity_order <- effect_order$amenity_type
### |- apply shared factor levels to both plotting data frames ----
plot_data_zones <- plot_data_zones_raw |>
mutate(
amenity_type = factor(amenity_type, levels = rev(amenity_order)),
amenity_label = amenity_labels[as.character(amenity_type)]
)
plot_data_groups <- group_avg_data |>
mutate(
amenity_type = factor(amenity_type, levels = rev(amenity_order)),
amenity_label = amenity_labels[as.character(amenity_type)]
)
### |- ratio annotation for every row ----
ratio_label_data <- effect_order |>
mutate(
amenity_type = factor(amenity_type, levels = rev(amenity_order)),
amenity_label = amenity_labels[as.character(amenity_type)],
ratio_label = paste0(scales::number(ratio, accuracy = 0.1), "x"),
x_mid = (Cooler + Warmer) / 2
)
### |- separate callout for the largest ABSOLUTE gap (basketball) ----
abs_gap_label_data <- effect_order |>
mutate(
amenity_type = factor(amenity_type, levels = rev(amenity_order)),
amenity_label = amenity_labels[as.character(amenity_type)]
) |>
slice_max(abs_diff, n = 1) |>
mutate(callout = paste0("Largest raw gap (+", scales::number(abs_diff, accuracy = 0.1), " per 10k)"))
```
#### [5. Visualization Parameters]{.smallcaps}
```{r}
#| label: params
#| include: true
#| warning: false
### |- plot aesthetics ----
colors <- get_theme_colors(
palette = list(
cooler = "#1B3A4B",
warmer = "#A85C36",
neutral = "gray70"
)
)
group_colors <- c(Cooler = "#1B3A4B", Warmer = "#A85C36")
### |- fonts ----
setup_fonts()
fonts <- get_font_families()
### |- caption ----
caption_text <- create_mm_caption(
mm_year = 2026,
mm_week = 28,
source_text = paste0(
"Trust for Public Land, City Park Facts<br>",
"Note: Cooler/Warmer is a descriptive grouping of TPL's own climate_zone ",
"categories, shown for context; all four source zones are plotted. Filled ",
"points represent the average of the two climate-zone medians within each ",
"group; open circles show the individual climate-zone medians. ",
"Comparison reflects per-capita inventory only — not spend, acreage, or demand."
)
)
### |- base theme ----
base_theme <- create_base_theme(colors)
### |- titles ----
title_text <- str_glue("Traditional Park Amenities Are More Common in Cooler-Climate Cities")
subtitle_text <- str_glue(
"Across five traditional park amenities, cooler-climate cities (Cold + ",
"Mixed-Humid) consistently provide more facilities per capita than ",
"warmer-climate cities (Hot-Humid + Hot-Dry). The pattern holds across ",
"all five amenities, with no exceptions"
)
### |- plot theme ----
weekly_theme <- extend_weekly_theme(
base_theme,
theme(
plot.title = element_text(size = 19, face = "bold", margin = margin(b = 6), family = fonts$title_1),
plot.subtitle = element_textbox_simple(
size = 11.5, color = "gray30", margin = margin(b = 18), lineheight = 1.3
),
plot.caption = element_textbox_simple(
size = 7, color = "gray45", hjust = 0, margin = margin(t = 14), lineheight = 1.3, family = fonts$caption
),
axis.text.y = element_text(size = 11.5, face = "bold", hjust = 1),
axis.text.x = element_text(size = 9, color = "gray40"),
axis.title.x = element_text(size = 9.5, color = "gray40", margin = margin(t = 8)),
axis.title.y = element_blank(),
axis.ticks = element_blank(),
panel.grid.major.x = element_line(color = "gray90", linewidth = 0.3),
panel.grid.major.y = element_blank(),
panel.grid.minor = element_blank(),
legend.position = "top",
legend.title = element_blank(),
legend.text = element_text(size = 10)
)
)
theme_set(weekly_theme)
```
#### [6. Plot]{.smallcaps}
```{r}
#| label: plot
#| warning: false
### |- plot ----
p <- ggplot() +
geom_segment(
data = plot_data_groups |>
select(amenity_type, climate_group, group_avg) |>
pivot_wider(names_from = climate_group, values_from = group_avg),
aes(x = Warmer, xend = Cooler, y = amenity_type, yend = amenity_type),
color = "gray75", linewidth = 0.9
) +
geom_segment(
data = plot_data_zones |>
left_join(
plot_data_groups |> select(amenity_type, climate_group, group_avg),
by = c("amenity_type", "climate_group")
),
aes(
x = median_pc, xend = group_avg, y = amenity_type, yend = amenity_type,
color = climate_group
),
linewidth = 0.4, alpha = 0.5
) +
geom_point(
data = plot_data_zones,
aes(x = median_pc, y = amenity_type, color = climate_group),
shape = 21, fill = "#F4F3EE", size = 1.8, stroke = 0.5, alpha = 0.55
) +
geom_point(
data = plot_data_groups,
aes(x = group_avg, y = amenity_type, color = climate_group),
size = 6
) +
geom_text(
data = ratio_label_data,
aes(x = x_mid, y = amenity_type, label = ratio_label),
nudge_y = 0.32, family = fonts$text, fontface = "bold",
size = 3.6, color = "gray30"
) +
geom_text(
data = abs_gap_label_data,
aes(x = Cooler, y = amenity_type, label = callout),
nudge_y = -0.32, nudge_x = 0.15, hjust = 0,
family = fonts$text, fontface = "italic",
size = 3, color = "gray45"
) +
scale_y_discrete(labels = amenity_labels) +
scale_color_manual(
values = group_colors,
breaks = c("Warmer", "Cooler"),
labels = c("Warmer climates", "Cooler climates")
) +
scale_x_continuous(expand = expansion(mult = c(0.05, 0.12))) +
labs(
title = title_text, subtitle = subtitle_text, caption = caption_text,
x = "Facilities per 10,000 residents (median)"
)
```
#### [7. Save]{.smallcaps}
```{r}
#| label: save
#| warning: false
### |- plot image ----
save_plot(
plot = p,
type = "makeovermonday",
year = current_year,
week = current_week,
width = 10,
height = 7
)
```
#### [8. Session Info]{.smallcaps}
::: {.callout-tip collapse="true"}
##### Expand for Session Info
```{r, echo = FALSE}
#| eval: true
#| warning: false
sessionInfo()
```
:::
#### [9. GitHub Repository]{.smallcaps}
::: {.callout-tip collapse="true"}
##### Expand for GitHub Repo
The complete code for this analysis is available in `r create_link(project_file, repo_file)`.
For the full repository, `r create_link("click here", repo_main)`.
:::
#### [10. References]{.smallcaps}
::: {.callout-tip collapse="true"}
##### Expand for References
**Primary Data (Makeover Monday):**
1. Makeover Monday `r current_year` Week `r current_week`: `r create_link("City Park Facts", "https://www.tpl.org/city-park-facts")`
- CSV: 8,972 rows × 9 columns. Each record represents a single city × amenity × measure combination for one of 99 U.S. cities. Measures include total inventory, per-capita inventory (per 10,000 residents), population, and total investment across 24 park amenity types.
- The original Tableau dashboard allows users to explore one amenity at a time. This makeover instead focuses on five traditional outdoor recreation amenities that were identified through exploratory analysis as showing a consistent climate-related pattern after applying data-quality, coverage, and multiple-testing checks.
- Analysis was performed using the published per-capita inventory measure (`Per Capita (10k)`), rather than total facility counts, to make comparisons across cities of different population sizes.
2. Original Chart: `r create_link("Which cities have the most pickleball courts (or other park activities)?", "https://www.tpl.org/city-park-facts")` — Trust for Public Land
- An interactive Tableau dashboard allowing readers to select individual park amenities and compare cities by total inventory or per-capita provision. The original emphasizes city rankings within a chosen amenity.
- This makeover asks a different question: rather than ranking cities, it examines whether traditional outdoor recreation amenities exhibit consistent differences across climate zones. Exploratory analysis found that five independent amenities all showed higher per-capita inventories in cooler-climate cities than in warmer-climate cities, motivating the comparative design.
**Source Data:**
3. `r create_link("City Park Facts", "https://www.tpl.org/city-park-facts")` — Trust for Public Land
- City Park Facts compiles standardized measures of park systems for the 100 largest U.S. cities, including park acreage, investment, accessibility, and inventories of recreational amenities.
- This visualization uses only the published park amenity inventory data. Comparisons are based on facilities per 10,000 residents and do not evaluate park funding, acreage, service quality, maintenance, or recreational demand.
**Methodological Notes:**
4. Climate categories follow Trust for Public Land's published `climate_zone` classifications.
- For visualization only, the four source climate zones were summarized into two descriptive groups:
- **Cooler climates:** Cold + Mixed-Humid
- **Warmer climates:** Hot-Humid + Hot-Dry
- This grouping is a descriptive summary chosen after exploratory analysis and is not a standard climate classification. The underlying climate-zone medians remain visible in the figure.
:::
#### [11. Custom Functions Documentation]{.smallcaps}
::: {.callout-note collapse="true"}
##### 📦 Custom Helper Functions
This analysis uses custom functions from my personal module library for efficiency and consistency across projects.
**Functions Used:**
- **`fonts.R`**: `setup_fonts()`, `get_font_families()` - Font management with showtext
- **`social_icons.R`**: `create_social_caption()` - Generates formatted social media captions
- **`image_utils.R`**: `save_plot()` - Consistent plot saving with naming conventions
- **`base_theme.R`**: `create_base_theme()`, `extend_weekly_theme()`, `get_theme_colors()` - Custom ggplot2 themes
**Why custom functions?**\
These utilities standardize theming, fonts, and output across all my data visualizations. The core analysis (data tidying and visualization logic) uses only standard tidyverse packages.
**Source Code:**\
View all custom functions → [GitHub: R/utils](https://github.com/poncest/personal-website/tree/master/R)
:::