---
title: "The record changes at 1900, not necessarily the Church"
subtitle: "Before 1900, this file draws on MiracleHunter's list of traditionally approved Marian apparition claims. From 1900, it draws on MiracleHunter's list of unapproved claims. Two lists with different rules for who gets in: the file cannot show whether approval rates changed."
description: "The TidyTuesday miracles file holds only traditionally approved Marian apparition claims before 1900 and only unapproved claims from 1900, so it cannot show whether approval rates changed. A 2x2 collection matrix compares source lists by period, with empty cells marking populations the file never collected. Built in R with ggplot2, ggtext and showtext."
date: "2026-11-30"
author:
- name: "Steven Ponce"
url: "https://stevenponce.netlify.app"
citation:
url: "https://stevenponce.netlify.app/data_visualizations/TidyTuesday/2026/tt_2026_48.html"
categories: ["TidyTuesday", "2026"]
tags: [
"TidyTuesday",
"Catholic Miracles",
"Marian Apparitions",
"Selection Bias",
"Data Provenance",
"Missing Data",
"Negative Space",
"Matrix Chart",
"Data Quality",
"Annotation",
"ggtext",
"showtext",
"ggplot2",
"2026"
]
image: "thumbnails/tt_2026_48.png"
format:
html:
toc: true
toc-depth: 4
code-link: true
code-fold: true
code-tools: true
code-summary: "Show code"
editor_options:
chunk_output_type: inline
execute:
freeze: true
cache: false
error: false
message: false
warning: false
eval: true
---
{#fig-1}
::: {.key-takeaways}
[Key takeaways]{.key-takeaways-label}
- Any apparent decline in approval would appear whatever the Church decided, because it comes from how the file was assembled. All 679 records from the traditional list carry an approved status, while only 23 of the 800 records from the unapproved list contain approval-related wording.
- MiracleHunter separately lists 12 approved 20th-century apparitions, including Fatima, Banneux and Kibeho. None was identified as a corresponding apparition record in the TidyTuesday file.
- Re-reading the source dates shows the 1900 boundary holds: none of the 1,448 records with a reconstructed numerical year crosses it. The remaining 31 lack a reconstructed numerical year, but their source-list membership is known.
:::
### [**Steps to Create this Graphic**]{.mark}
#### [1. Load Packages & Setup]{.smallcaps}
```{r}
#| label: load
#| warning: false
#| message: false
#| results: "hide"
#| cache: false
## 1. LOAD PACKAGES & SETUP ----
suppressPackageStartupMessages({
if (!require("pacman")) install.packages("pacman")
pacman::p_load(
tidyverse, ggtext, showtext, scales, glue, ggview,
ragg, magick
)
})
# 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
#| cache: false
### |- figure settings ----
fig_w <- 10
fig_h <- 7
fig_dpi <- 320
### |- fonts ----
setup_fonts()
fonts <- get_font_families()
title_family <- fonts$title_1
title_size <- 30
## 2. READ IN THE DATA ----
## Every field as character, no NA tokens.
tt_url <- "https://raw.githubusercontent.com/rfordatascience/tidytuesday/main/data/2026/2026-12-01/"
miracles_raw <- read_csv(paste0(tt_url, "catholic_miracles.csv"),
col_types = cols(.default = col_character()), na = character(), show_col_types = FALSE
)
```
#### [3. Examine the Data]{.smallcaps}
```{r}
#| label: examine
#| include: true
#| eval: true
#| results: 'hide'
#| warning: false
## 3. EXAMINING THE DATA ----
glimpse(miracles_raw)
```
#### [4. Tidy Data]{.smallcaps}
```{r}
#| label: tidy
#| warning: false
### |- the two Marian source lists ----
marian <- miracles_raw |>
filter(category == "Marian Apparition") |>
mutate(list = if_else(approval_status == "Approved (traditional/episcopal)",
"traditional", "unapproved"))
n_marian <- nrow(marian)
n_traditional <- sum(marian$list == "traditional")
n_unapproved <- sum(marian$list == "unapproved")
### |- the 2 x 2 ----
# columns: before 1900 (1) / from 1900 (2); rows: approved (2) / unapproved (1)
cells <- tibble(
col = c(1, 2, 2, 1),
row = c(2, 1, 2, 1),
filled = c(TRUE, TRUE, FALSE, FALSE),
count = c(comma(n_traditional), comma(n_unapproved), NA, NA),
what = c("records in this dataset",
"records in this dataset",
"Approved claims from 1900 are on\nMiracleHunter pages not collected",
"No list of unapproved claims\nbefore 1900 found at the source"),
tag = c(NA, NA, "Not in this dataset", "Not in this dataset")
)
col_heads <- tibble(x = c(1, 2), y = 2.6, label = c("Before 1900", "From 1900"))
row_heads <- tibble(x = 0.42, y = c(2, 1), label = c("Listed as\napproved", "Listed as\nunapproved"))
tile_w <- 0.94
```
#### [5. Visualization Parameters]{.smallcaps}
```{r}
#| label: params
#| include: true
#| warning: false
#| cache: false
### |- plot aesthetics ----
clrs <- get_theme_colors(
palette = list(
filled = "#2C2825",
missing = "#722F37",
edge = "#8C847C",
ink = "#2C2825",
label = "#72685F"
)
)
col_filled <- clrs$palette$filled
col_missing <- clrs$palette$missing
col_edge <- clrs$palette$edge
col_ink <- clrs$palette$ink
col_label <- clrs$palette$label
### |- titles and caption ----
title_text <- "The record changes at 1900, not necessarily the Church"
subtitle_text <- glue(
"Before 1900, this file draws on MiracleHunter's list of **traditionally approved** Marian apparition claims.<br>",
"From 1900, it draws on MiracleHunter's list of **unapproved** claims.<br>",
"Two lists with different rules for who gets in: the file cannot show whether approval rates changed."
)
caption_note <- glue(
"Counts are records per source list ({comma(n_marian)} Marian apparition records in the TidyTuesday file). ",
"Empty cells mean not collected, not zero events.<br>",
"Inclusion depends on which MiracleHunter list a record came from, and the lists use different selection rules."
)
caption_text <- paste0(
caption_note, "<br>",
create_social_caption(
tt_year = 2026,
tt_week = 48,
source_text = "MiracleHunter.com via TidyTuesday"
)
)
### |- plot theme ----
base_theme <- create_base_theme(clrs)
weekly_theme <- extend_weekly_theme(
base_theme,
theme(
plot.title = element_text(
face = "bold", family = title_family, size = title_size,
color = col_ink, margin = margin(b = 8)
),
plot.subtitle = element_textbox_simple(
family = fonts$subtitle, size = 12, color = col_ink,
lineheight = 1.3, margin = margin(b = 10)
),
plot.caption = element_textbox_simple(
family = fonts$caption, size = 6.6, color = col_label,
lineheight = 1.35, margin = margin(t = 10)
),
axis.text = element_blank(),
axis.title = element_blank(),
axis.ticks = element_blank(),
panel.grid = element_blank(),
plot.margin = margin(14, 20, 8, 20)
)
)
theme_set(weekly_theme)
```
#### [6. Plot]{.smallcaps}
```{r}
#| label: plot
#| warning: false
### |- main plot ----
p <- ggplot() +
# Geoms
geom_tile(
data = filter(cells, filled), aes(col, row),
width = tile_w, height = tile_w, fill = col_filled
) +
geom_tile(
data = filter(cells, !filled), aes(col, row),
width = tile_w, height = tile_w, fill = NA,
color = col_edge, linetype = "dashed", linewidth = 0.55
) +
geom_text(
data = filter(cells, filled), aes(col, row + 0.08, label = count),
family = fonts$title_1, fontface = "bold", size = 16, color = "white"
) +
geom_text(
data = filter(cells, filled), aes(col, row - 0.12, label = what),
family = fonts$text, size = 4.3, color = "white", lineheight = 1.05
) +
geom_text(
data = filter(cells, !filled), aes(col, row + 0.2, label = tag),
family = fonts$text, fontface = "bold", size = 4.6, color = col_missing
) +
geom_text(
data = filter(cells, !filled), aes(col, row - 0.08, label = what),
family = fonts$text, size = 3.9, color = col_label, lineheight = 1.1
) +
geom_text(
data = col_heads, aes(x, y, label = label),
family = fonts$text, fontface = "bold", size = 4.6, color = col_ink
) +
geom_text(
data = row_heads, aes(x, y, label = label),
family = fonts$text, fontface = "bold", size = 4.6, color = col_ink, hjust = 1, lineheight = 1.05
) +
# Scales
coord_cartesian(xlim = c(-0.15, 2.5), ylim = c(0.48, 2.72), expand = FALSE) +
# Labs
labs(title = title_text, subtitle = subtitle_text, caption = caption_text)
```
#### [7. Save]{.smallcaps}
```{r}
#| label: save
#| warning: false
### |- save ----
main_path <- here::here("data_visualizations", "TidyTuesday", "2026", "tt_2026_48.png")
thumb_path <- here::here("data_visualizations", "TidyTuesday", "2026", "thumbnails", "tt_2026_48.png")
# Full-size version, for the QMD figure
ggview::save_ggplot(plot = p, file = main_path, width = fig_w,
height = fig_h, units = "in", dpi = fig_dpi)
# 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. Reproduce]{.smallcaps}
::: {.callout-tip collapse="true"}
##### Session info
```{r}
#| eval: true
#| warning: false
sessionInfo()
```
:::
::: {.callout-tip collapse="true"}
##### Code
The complete code for this analysis is in [`tt_2026_48.qmd`](https://github.com/poncest/personal-website/blob/master/data_visualizations/TidyTuesday/2026/tt_2026_48.qmd). The full site is in the [poncest/personal-website repository](https://github.com/poncest/personal-website/).
:::
```{r}
#| label: references-setup
#| include: false
current_year <- 2026
current_week <- 48
create_link <- function(text, url) sprintf("[%s](%s)", text, url)
```
::: {.callout-tip collapse="true"}
##### References
**Primary Data (TidyTuesday):** 1. TidyTuesday `r current_year` Week `r current_week`: `r create_link("Documented Catholic Miracles", "https://github.com/rfordatascience/tidytuesday/tree/main/data/2026/2026-12-01")`, curated by `r create_link("Tony Galvan, Golden Dome Data Science", "https://github.com/gdatascience")`. - One table of 1,990 records in six categories, scraped from MiracleHunter.com, miracolieucaristici.org and lourdes-france.com. This post uses the 1,479 Marian apparition records. - The curation script builds the Marian rows from two MiracleHunter lists: the traditionally approved century pages (679 rows, given an approved status by the script) and the list of unapproved apparitions since 1900 (800 rows, with MiracleHunter's own status text). MiracleHunter's pages of approved 20th-century apparitions were not scraped.
**Source Data:** 2. MiracleHunter `r create_link("traditionally approved apparitions", "https://www.miraclehunter.com/marian_apparitions/approved_apparitions/traditional.html")`, `r create_link("Unapproved Apparitions Since 1900", "https://www.miraclehunter.com/marian_apparitions/approved_apparitions/index.html")` and `r create_link("Complete List of Approved 20th Century Apparitions", "https://www.miraclehunter.com/marian_apparitions/approved_apparitions/index2.html")` (read 2026-11-30). - The approved 20th-century list has 12 entries, including Fatima, Banneux and Kibeho; none was identified in the TidyTuesday file. - The site's navigation offers a single list for non-approved claims, the one since 1900; no list of unapproved claims before 1900 was found.
**Analysis:** The curation script takes the first run of digits in each date as the year, so some day numbers became years. To check the 1900 boundary, dates were re-read from the same source pages on 2026-11-30: 1,448 of the 1,479 Marian records have a readable year, and none falls on the other list's side of 1900. The remaining 31 keep their source-list membership. Checks and figures: `r create_link("decision record", "https://github.com/poncest/tidytuesday/tree/main/2026/Week_48/decisions")`.
**Claim limits:** Counts are records per source list, and statuses are as MiracleHunter records them, not verified rulings. Empty cells mean not collected, not zero events. The chart makes no claim about whether any apparition occurred or how often the Church approves claims.
:::
::: {.callout-note collapse="true"}
##### Helper functions
This analysis uses functions from my personal module library. The data tidying and chart logic use standard tidyverse packages.
**Functions used:**
- **`fonts.R`**: `setup_fonts()`, `get_font_families()`: font management with showtext
- **`social_icons.R`**: `create_social_caption()`: formatted social media captions
- **`base_theme.R`**: `create_base_theme()`, `extend_weekly_theme()`, `get_theme_colors()`: custom ggplot2 themes
[Browse the helper functions on GitHub](https://github.com/poncest/personal-website/tree/master/R)
:::