---
title: "Some country producers stick with one artist. Others work across the genre."
subtitle: "Among recurring producers of 2014–2019 Country Airplay hits, some appear almost entirely with one artist while one standout spans 17 acts."
description: "An arc diagram comparing six country music producers' artist relationships from 2014–2019 Country Airplay hits, where some work almost exclusively with one artist while Dann Huff spans 17 different acts. Producers were selected to illustrate this range from a larger set credited on three or more songs, with line width encoding songs produced together. Built in R with ggplot2."
date: "2026-08-22"
author:
- name: "Steven Ponce"
url: "https://stevenponce.netlify.app"
citation:
url: "https://stevenponce.netlify.app/data_visualizations/TidyTuesday/2026/tt_2026_34.html"
categories: ["TidyTuesday", "2026"]
tags: [
"TidyTuesday",
"Arc Diagram",
"Data Visualization",
"R Programming",
"ggplot2",
"Music Industry",
"Country Music",
"Record Producers",
"Network Visualization",
"Data Storytelling",
"Editorial Chart",
"geom_curve"
]
image: "thumbnails/tt_2026_34.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
---
{#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, janitor, ggrepel,
scales, glue, skimr, ggview
)
})
# 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
## 2. READ IN THE DATA ----
# tt <- tidytuesdayR::tt_load(2026, week = 34)
# country_lyrics <- tt$country_lyrics
# rm(tt)
country_lyrics <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/main/data/2026/2026-08-25/country_lyrics.csv')
```
#### [3. Examine the Data]{.smallcaps}
```{r}
#| label: examine
#| include: true
#| eval: true
#| results: 'hide'
#| warning: false
## 3. EXAMINING THE DATA ----
glimpse(country_lyrics)
skim_without_charts(country_lyrics)
```
#### [4. Tidy Data]{.smallcaps}
```{r}
#| label: tidy
#| warning: false
hero_producers <- c(
"Michael Knox",
"Jeff Stevens",
"Byron Gallimore",
"Ross Copperman",
"Jay Joyce",
"Dann Huff"
)
producer_edges <- country_lyrics |>
filter(!is.na(producer)) |>
separate_longer_delim(producer, delim = ",") |>
mutate(producer = str_squish(producer)) |>
filter(producer %in% hero_producers) |>
count(producer, artist, name = "n_songs")
#
producer_check <- producer_edges |>
mutate(
artist_share = n_songs / sum(n_songs),
.by = producer
) |>
summarise(
total_songs = sum(n_songs),
distinct_artists = n_distinct(artist),
top_artist_share = max(artist_share),
.by = producer
) |>
arrange(match(producer, hero_producers))
# Two-column layout
reach_left <- 0.70
reach_right <- 2.10
col_gap <- 2.30
label_offset <- 0.12
row_gap <- 2.00
layout_spec <- tribble(
~producer, ~side, ~row,
"Michael Knox", "left", 1,
"Ross Copperman", "right", 1,
"Jeff Stevens", "left", 2,
"Jay Joyce", "right", 2,
"Byron Gallimore", "left", 3,
"Dann Huff", "right", 3
)
row_layout <- layout_spec |>
left_join(producer_check, by = "producer") |>
mutate(
half_span = pmax((distinct_artists - 1) / 2, 0.5)
) |>
summarise(
row_half_span = max(half_span),
.by = row
) |>
arrange(row) |>
mutate(
row_full_span = row_half_span * 2,
baseline_y = -(
cumsum(row_full_span) -
row_half_span +
row_gap * (row_number() - 1)
)
) |>
select(row, row_half_span, baseline_y)
artist_breadth_range <- c(1, 17)
palette_fn <- scales::colour_ramp(c("#5C6068", "#90718A", "#4A154B"))
producer_layout <- layout_spec |>
left_join(producer_check, by = "producer") |>
left_join(row_layout, by = "row") |>
mutate(
half_span = pmax((distinct_artists - 1) / 2, 0.5),
hub_x = if_else(
side == "left",
0,
col_gap
),
reach = if_else(
side == "left",
reach_left,
reach_right
),
node_x = hub_x + reach,
producer_label_x = hub_x - label_offset,
stat_label = str_glue(
"{total_songs} songs across {distinct_artists} ",
"{if_else(distinct_artists == 1, 'artist', 'artists')}"
),
color_val = scales::rescale(
distinct_artists,
from = artist_breadth_range
),
label_color = palette_fn(color_val)
)
# Build artist nodes
nodes <- producer_edges |>
left_join(
producer_layout |>
select(
producer,
hub_x,
node_x,
baseline_y,
distinct_artists
),
by = "producer"
) |>
mutate(
producer = factor(
producer,
levels = layout_spec$producer
)
) |>
arrange(
producer,
desc(n_songs),
artist
) |>
mutate(
rank = row_number(),
k = n(),
.by = producer
) |>
mutate(
y_local = rank - (k + 1) / 2,
y_abs = baseline_y + y_local,
artist_label_x = node_x + label_offset,
color_val = scales::rescale(
distinct_artists,
from = artist_breadth_range
),
line_color = palette_fn(color_val)
)
# Visual Key
key_gap <- 2
key_y <- row_layout$baseline_y[row_layout$row == 1] +
row_layout$row_half_span[row_layout$row == 1] +
key_gap
key_data <- tibble(
x = 0,
xend = reach_left,
y = key_y
)
```
#### [5. Visualization Parameters]{.smallcaps}
```{r}
#| label: params
#| include: true
#| warning: false
### |- plot aesthetics ----
colors <- get_theme_colors()
bg_color <- "#F8F9FA"
title_color <- colors$title
text_color <- colors$text
subtitle_color <- colors$subtitle
caption_color <- colors$caption
### |- titles and caption ----
title_text <- paste0(
"Some country producers stick with one artist. ",
"Others work across the genre."
)
subtitle_text <- paste0(
"Among recurring producers of 2014\u20132019 Country Airplay hits, ",
"some appear almost entirely with one artist while one standout spans 17 acts."
)
methodology_text <- str_wrap(
paste0(
"Six producers selected to illustrate the range of artist relationships ",
"among producers credited on \u2265 3 songs. ",
"Line width represents songs produced together."
),
width = 130
) |>
str_replace_all("\n", "<br>")
caption_text <- str_glue(
"{methodology_text}<br>",
"{create_social_caption(
tt_year = 2026,
tt_week = 34,
source_text = \"Grady Smith's Country Music Lyrics dataset\"
)}"
)
### |- fonts ----
setup_fonts()
fonts <- get_font_families()
```
#### [6. Plot]{.smallcaps}
```{r}
#| label: plot
#| warning: false
### |- plot ----
p <- ggplot(nodes) +
# Producer - artist relationships
geom_curve(
aes(
x = hub_x, y = baseline_y, xend = node_x, yend = y_abs,
linewidth = n_songs, color = line_color
),
curvature = 0.35, alpha = 0.75, lineend = "round"
) +
geom_point(
data = producer_layout,
aes(x = hub_x, y = baseline_y),
color = bg_color, size = 4.5
) +
# Producer origin nodes
geom_point(
data = producer_layout,
aes(x = hub_x, y = baseline_y, color = label_color), size = 3.2
) +
# Artist labels
geom_text(
aes(x = artist_label_x, y = y_abs, label = artist),
hjust = 0, size = 2.8, color = text_color, family = fonts$text
) +
# Producer labels
geom_text(
data = producer_layout,
aes(x = producer_label_x, y = baseline_y, label = producer, color = label_color),
hjust = 1, fontface = "bold", size = 3.6, family = fonts$title_2
) +
# Producer summary labels
geom_text(
data = producer_layout,
aes(x = producer_label_x, y = baseline_y - 0.55, label = stat_label),
hjust = 1, size = 2.4, color = text_color, family = fonts$text
) +
# Visual key
geom_segment(
data = key_data,
aes(x = x, y = y, xend = xend, yend = y),
linewidth = 1, color = text_color, lineend = "round"
) +
geom_point(
data = key_data,
aes(x = x, y = y),
size = 2.2, color = text_color
) +
geom_text(
data = key_data,
aes(x = x, y = y + 0.5, label = "PRODUCER"),
hjust = 0.5, size = 2.6, fontface = "bold",
color = text_color, family = fonts$text
) +
geom_text(
data = key_data,
aes(x = xend, y = y + 0.5, label = "ARTIST"),
hjust = 0.5, size = 2.6, fontface = "bold",
color = text_color, family = fonts$text
) +
geom_text(
data = key_data,
aes(
x = (x + xend) / 2, y = y - 0.5,
label = "thicker lines = more songs produced together"
),
hjust = 0.5, size = 2.2, fontface = "italic",
color = text_color, family = fonts$text
) +
scale_linewidth_continuous(range = c(0.3, 3), guide = "none") +
scale_color_identity() +
scale_x_continuous(expand = expansion(mult = c(0.03, 0.08))) +
coord_cartesian(clip = "off") +
labs(
title = title_text,
subtitle = subtitle_text,
caption = caption_text
) +
theme_void() +
theme(
plot.background = element_rect(fill = bg_color, color = bg_color),
panel.background = element_rect(fill = bg_color, color = bg_color),
plot.title = element_textbox_simple(
face = "bold", family = fonts$title_1, size = 24,
lineheight = 1.2, color = title_color, margin = margin(b = 10)
),
plot.subtitle = element_textbox_simple(
family = fonts$subtitle, size = 15, lineheight = 1.3,
color = subtitle_color, margin = margin(t = 5, b = 10)
),
plot.caption = element_textbox_simple(
family = fonts$caption, size = 7.5, color = caption_color,
lineheight = 1.3, margin = margin(t = 12)
),
plot.margin = margin(t = 14, r = 40, b = 10, l = 70)
)
```
### [7. Save]{.smallcaps}
```{r}
#| label: save
#| warning: false
### |- save ----
main_path <- here::here("data_visualizations", "TidyTuesday", "2026", "tt_2026_34.png")
thumb_path <- here::here("data_visualizations", "TidyTuesday", "2026", "thumbnails", "tt_2026_34.png")
# Full-size version, for the QMD figure
save_ggplot(
plot = p,
file = main_path,
width = 12.5,
height = 11.5,
units = "in",
dpi = 300,
create.dir = TRUE
)
# Reduced-size thumbnail, for the YAML `image:` field
fs::dir_create(dirname(thumb_path))
magick::image_read(main_path) |>
magick::image_resize("400") |>
magick::image_write(thumb_path)
```
#### [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 [`tt_2026_34.qmd`](https://github.com/poncest/personal-website/blob/master/data_visualizations/TidyTuesday/2026/tt_2026_34.qmd).
For the full repository, [click here](https://github.com/poncest/personal-website/).
:::
#### [10. References]{.smallcaps}
::: {.callout-tip collapse="true"}
##### Expand for References
1. **Data Source:**
- TidyTuesday 2026 Week 34: [Country Music Lyrics](https://github.com/rfordatascience/tidytuesday/blob/main/data/2026/2026-08-25/readme.md)
:::
#### [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)
:::