---
title: "The biblical canon tells only part of the story"
subtitle: "Among familiar biblical books, Genesis is one of the most frequently represented. The picture changes once other works in the catalog are included."
description: "A two-panel dot plot compares manuscript counts for works in the Dead Sea Scrolls catalog, moving from six familiar biblical books to the fuller set of works with at least 16 cataloged manuscripts. The reveal: 1 Enoch matches Genesis at 24 manuscripts each, outnumbering Exodus, Isaiah, and Leviticus. Built in R with ggplot2, ggtext, and patchwork."
date: "2026-09-14"
author:
- name: "Steven Ponce"
url: "https://stevenponce.netlify.app"
citation:
url: "https://stevenponce.netlify.app/data_visualizations/TidyTuesday/2026/tt_2026_37.html"
categories: ["TidyTuesday", "2026"]
tags: [
"TidyTuesday",
"Dot Plot",
"Two-Panel Chart",
"patchwork",
"Dead Sea Scrolls",
"Biblical Studies",
"Archaeology",
"Ranking",
"Data Storytelling",
"Annotation",
"R Programming",
"ggplot2",
"2026"
]
image: "thumbnails/tt_2026_37.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, patchwork
)
})
# 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 = 37)
dead_sea_scrolls <- tt$dead_sea_scrolls
rm(tt)
```
#### [3. Examine the Data]{.smallcaps}
```{r}
#| label: examine
#| include: true
#| eval: true
#| results: 'hide'
#| warning: false
## 3. EXAMINING THE DATA ----
glimpse(dead_sea_scrolls)
skim_without_charts(dead_sea_scrolls)
```
#### [4. Tidy Data]{.smallcaps}
```{r}
#| label: tidy
#| warning: false
### |- standardized work counts ----
book_counts <- dead_sea_scrolls |>
filter(!is.na(biblical_book)) |>
count(biblical_book, canon_status, name = "n_manuscripts", sort = TRUE)
### |- hero cutoff ----
## Cut at n >= 16. Clean boundary — no tied works are split across it (the
## next cluster, n = 11, has four works tied together).
hero_set <- book_counts |>
filter(n_manuscripts >= 16)
```
#### [5. Visualization Parameters]{.smallcaps}
```{r}
#| label: params
#| include: true
#| warning: false
### |- plot aesthetics ----
clrs <- get_theme_colors(
palette = c("hero" = "#7B2D3E", "context" = "gray50")
)
### |- titles and caption ----
title_text <- str_glue("The biblical canon tells only part of the story")
subtitle_text <- str_glue(
"Among familiar biblical books, **Genesis** is one of the most frequently ",
"represented.<br>The picture changes once other works in the catalog are included."
)
caption_text <- create_social_caption(
tt_year = 2026,
tt_week = 37,
source_text = "Israel Antiquities Authority, Leon Levy Dead Sea Scrolls Digital Library"
)
caption_text <- str_replace(
caption_text,
"Source:",
"Works with \u226516 cataloged manuscripts shown \u2022 Source:"
)
### |- fonts ----
setup_fonts()
fonts <- get_font_families()
### |- plot theme ----
base_theme <- create_base_theme(clrs)
weekly_theme <- extend_weekly_theme(
base_theme,
theme(
plot.title = element_textbox_simple(
size = rel(1.6),
face = "bold",
family = fonts$title_1,
color = clrs$title,
lineheight = 1.1,
margin = margin(b = 8)
),
plot.subtitle = element_textbox_simple(
size = rel(0.8), lineheight = 1.25,
family = fonts$subtitle,
color = clrs$subtitle,
margin = margin(b = 20)
),
plot.caption = element_textbox_simple(
size = rel(0.55), lineheight = 1.15,
family = fonts$caption,
color = clrs$caption,
margin = margin(t = 12)
),
axis.text.y = element_blank(),
axis.ticks.y = element_blank(),
axis.text.x = element_text(family = fonts$text, size = rel(0.85), color = "gray60"),
axis.title = element_blank(),
panel.grid.major.y = element_blank(),
panel.grid.major.x = element_line(color = "gray92", linewidth = 0.3),
panel.grid.minor = element_blank(),
axis.ticks.x = element_blank(),
legend.position = "none",
plot.margin = margin(t = 12, r = 20, b = 10, l = 10)
)
)
theme_set(weekly_theme)
```
#### [6. Plot]{.smallcaps}
```{r}
#| label: plot
#| warning: false
### |- panel 1: familiar biblical books ----
panel1_data <- hero_set |>
filter(canon_status == "Protocanonical") |>
mutate(
emphasis = if_else(biblical_book == "Genesis", "continuity", "context"),
accent_color = clrs$palette[["context"]],
biblical_book = fct_reorder(biblical_book, n_manuscripts)
)
### |- panel 2: add other works in the catalog ----
panel2_data <- hero_set |>
mutate(
emphasis = if_else(biblical_book %in% c("Genesis", "1 Enoch"), "hero", "context"),
accent_color = if_else(emphasis == "hero", clrs$palette[["hero"]], clrs$palette[["context"]]),
biblical_book = fct_reorder(biblical_book, n_manuscripts)
)
### |- shared x scale ----
shared_x <- list(
scale_x_continuous(limits = c(-16, 38), breaks = seq(0, 30, 10))
)
### |- panel builder ----
build_panel <- function(data, panel_title) {
ggplot(data, aes(x = n_manuscripts, y = biblical_book)) +
geom_point(aes(color = accent_color, size = emphasis)) +
geom_text(
data = filter(data, emphasis == "hero"),
aes(label = n_manuscripts),
color = clrs$palette[["hero"]],
fontface = "bold",
family = fonts$text,
size = 4.2,
hjust = -0.9
) +
geom_text(
aes(
x = -1,
label = biblical_book,
fontface = if_else(emphasis == "context", "plain", "bold"),
color = accent_color
),
hjust = 1,
family = fonts$text,
size = 3.6,
show.legend = FALSE
) +
scale_color_identity() +
scale_size_manual(
values = c(hero = 5, continuity = 3.6, context = 2.8),
guide = "none"
) +
shared_x +
labs(title = panel_title) +
theme(
## Panel headings stay small and muted — the hierarchy belongs to
## Genesis/1 Enoch, not to the panel titles.
plot.title = element_textbox_simple(
size = rel(0.85), face = "bold", family = fonts$title_1,
color = "gray20", margin = margin(b = 10)
)
)
}
### |- plot ----
p1 <- build_panel(panel1_data, "Familiar biblical books")
p2 <- build_panel(panel2_data, "Add other works in the catalog")
p <- (p1 | p2) +
plot_annotation(
title = title_text,
subtitle = subtitle_text,
caption = caption_text,
theme = weekly_theme
)
```
### [7. Save]{.smallcaps}
```{r}
#| label: save
#| warning: false
### |- save ----
main_path <- here::here("data_visualizations", "TidyTuesday", "2026", "tt_2026_37.png")
thumb_path <- here::here("data_visualizations", "TidyTuesday", "2026", "thumbnails", "tt_2026_37.png")
# Full-size version, for the QMD figure
save_ggplot(
plot = p,
file = main_path,
width = 12,
height = 6.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_37.qmd`](https://github.com/poncest/personal-website/blob/master/data_visualizations/TidyTuesday/2026/tt_2026_37.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 37: [Dead Sea Scrolls Manuscripts](https://github.com/rfordatascience/tidytuesday/blob/main/data/2026/2026-09-15/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)
:::