Workshop 3: Harbour Seal Figure Deconstruction

Author

Nur Imannina Binti Adam

Show R code
library(tidyverse)
Warning: package 'tidyverse' was built under R version 4.5.3
Warning: package 'ggplot2' was built under R version 4.5.3
Warning: package 'tibble' was built under R version 4.5.3
Warning: package 'tidyr' was built under R version 4.5.3
Warning: package 'readr' was built under R version 4.5.3
Warning: package 'purrr' was built under R version 4.5.3
Warning: package 'dplyr' was built under R version 4.5.3
Warning: package 'stringr' was built under R version 4.5.3
Warning: package 'lubridate' was built under R version 4.5.3
Show R code
library(here)
Warning: package 'here' was built under R version 4.5.3
Show R code
library(knitr)
Warning: package 'knitr' was built under R version 4.5.3

1. Original figure and purpose

Original source: Blundell, G. M., & Pendleton, G. W. (2015). Factors Affecting Haul-Out Behavior of Harbor Seals (Phoca vitulina) in Tidewater Glacier Inlets in Alaska: Can Tourism Vessels and Seals Coexist? PLOS ONE, 10(5), e0125486. https://doi.org/10.1371/journal.pone.0125486

Figure 1: Original Figure 6 from Blundell and Pendleton (2015). Vertical intervals represent 95% confidence intervals.

Intended message

The figure compares the estimated proportion of time radio-tagged harbour seals spent in the monitored glacial inlets across five seasonal periods in 2008–2010, alongside seasonal estimates pooled across years. Points represent estimates, and vertical bars show 95% confidence intervals. This measures presence within the inlets, regardless of whether seals were in the water or resting on ice, rather than the proportion of time spent hauled out (Blundell & Pendleton, 2015).

2. Visual critique

Issue 1: Seasonal labels

The x-axis labels seasons as numbers from 1 to 5, requiring readers to repeatedly consult the legend to identify the corresponding dates. This adds effort when interpreting seasonal patterns. Replacing the numbers with date ranges would make the timing immediately clear and allow comparisons without referring back to the legend.

Issue 2: Overlapping estimates and intervals

The year-specific estimates overlap, while their confidence intervals are all drawn in black and sometimes offset from the corresponding points. This makes it difficult to identify which interval belongs to each year, particularly in the first three seasons. Separating years into panels and matching interval colours to their points would make the estimates and their uncertainty easier to interpret.

Issue 3: Pooled and year-specific results

The all-years-combined estimates appear beside the year-specific results in the same plotting area, although they represent a different level of aggregation. Their position beyond season 5 may also confuse readers because it does not correspond to additional seasons. Placing these pooled estimates in a separate, clearly labelled panel would distinguish them from individual-year results while retaining the same seasonal labels and scale for comparison.

3. Data acquisition and preparation

The plotted estimates and confidence-interval endpoints were manually digitised from Figure 6 using PlotDigitizer. The original click-coordinate CSV was retained separately. The values are approximate graphical extractions, rather than raw observations from individual seals.

The organised file contains one row for each year–season estimate, with separate columns for the estimate and lower and upper 95% confidence limits. The five pooled seasonal estimates are labelled “All years combined”.

Show R code
figure6_data <- read_csv(
  here::here(
    "data", "workshop3", "figure6_digitised.csv"
  ),
  col_types = cols(
    year = col_character(),
    season = col_integer(),
    estimate = col_double(),
    lower_ci = col_double(),
    upper_ci = col_double()
  )
)

# Validate structure, ranges and interval ordering
stopifnot(
  nrow(figure6_data) == 18,
  !anyNA(figure6_data),
  all(figure6_data$season %in% 1:5),
  all(figure6_data$lower_ci >= 0),
  all(figure6_data$upper_ci <= 1),
  all(figure6_data$lower_ci <= figure6_data$estimate),
  all(figure6_data$estimate <= figure6_data$upper_ci),
  anyDuplicated(
    figure6_data[c("year", "season")]
  ) == 0
)

year_levels <- c(
  "2008", "2009", "2010", "All years combined"
)

season_labels <- c(
  "Before\n1 Jun",
  "1–15\nJun",
  "15–30\nJun",
  "1–15\nJul",
  "After\n15 Jul"
)

plot_data <- figure6_data %>%
  mutate(
    year = factor(year, levels = year_levels),
    season_label = factor(
      season,
      levels = 1:5,
      labels = season_labels
    )
  ) %>%
  arrange(year, season)

glimpse(plot_data)
Rows: 18
Columns: 6
$ year         <fct> 2008, 2008, 2008, 2009, 2009, 2009, 2009, 2009, 2010, 201…
$ season       <int> 1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5
$ estimate     <dbl> 0.5898901, 0.4896704, 0.5265934, 0.6426374, 0.3331868, 0.…
$ lower_ci     <dbl> 0.4641758, 0.3683517, 0.3973627, 0.5309890, 0.2338462, 0.…
$ upper_ci     <dbl> 0.7138462, 0.6189011, 0.6584616, 0.7410989, 0.4536264, 0.…
$ season_label <fct> Before
1 Jun, 1–15
Jun, 15–30
Jun, Before
1 Jun, 1–15
Jun…

Season labels follow the original figure’s legend. No estimates were supplied for 2008 seasons 4–5; these remain absent rather than being assigned zero.

4. Reconstructed figure

The reconstruction separates the three years and pooled results into panels. Each panel uses the same axes, direct season labels and coloured confidence intervals.

Show R code
panel_colours <- c(
  "2008" = "#0072B2",
  "2009" = "#D55E00",
  "2010" = "#009E73",
  "All years combined" = "#595959"
)

reconstructed_plot <- ggplot(
  plot_data,
  aes(
    x = season_label,
    y = estimate,
    colour = year
  )
) +
  geom_errorbar(
    aes(ymin = lower_ci, ymax = upper_ci),
    width = 0.12,
    linewidth = 0.7
  ) +
  geom_point(size = 3) +
  facet_wrap(
    ~ year,
    ncol = 2,
    drop = FALSE
  ) +
  scale_colour_manual(values = panel_colours) +
  scale_x_discrete(drop = FALSE) +
  scale_y_continuous(
    limits = c(0, 1),
    breaks = seq(0, 1, 0.2),
    labels = scales::label_percent(accuracy = 1)
  ) +
  labs(
    x = "Season",
    y = "Proportion of time in monitored glacial inlets",
    subtitle = "Points: estimates | Intervals: 95% confidence intervals"
  ) +
  theme_minimal(base_size = 12) +
  theme(
    legend.position = "none",
    panel.grid.minor = element_blank(),
    panel.grid.major.x = element_blank(),
    strip.text = element_text(
      face = "bold",
      size = 12
    ),
    axis.text.x = element_text(size = 10),
    panel.spacing = grid::unit(1.2, "lines"),
    plot.subtitle = element_text(
      margin = margin(b = 12)
    )
  )

reconstructed_plot
Figure 2: Seasonal estimates of the proportion of time radio-tagged harbour seals spent in the monitored glacial inlets. Points and vertical intervals show estimates and 95% confidence intervals digitised approximately from Figure 6 of Blundell and Pendleton (2015). Panels distinguish 2008, 2009, 2010 and the published all-years-combined estimates. Missing estimates for 2008 seasons 4–5 are not plotted. Pooled values were extracted from the original figure rather than calculated as averages of annual estimates.

5. Digitised estimates

Values are displayed to three decimal places for readability; this does not imply equivalent measurement accuracy.

Approximate estimates extracted from the published figure.
Year Season Estimate Lower 95% CI Upper 95% CI
2008 1 0.590 0.464 0.714
2008 2 0.490 0.368 0.619
2008 3 0.527 0.397 0.658
2009 1 0.643 0.531 0.741
2009 2 0.333 0.234 0.454
2009 3 0.440 0.329 0.558
2009 4 0.252 0.121 0.441
2009 5 0.287 0.136 0.508
2010 1 0.458 0.342 0.580
2010 2 0.379 0.263 0.512
2010 3 0.616 0.488 0.728
2010 4 0.682 0.556 0.796
2010 5 0.292 0.184 0.446
All years combined 1 0.566 0.495 0.635
All years combined 2 0.398 0.329 0.474
All years combined 3 0.529 0.454 0.601
All years combined 4 0.461 0.334 0.593
All years combined 5 0.287 0.186 0.418

6. Evaluation of the redesign

Improvements in communication

Direct date labels make the seasonal periods immediately understandable without consulting a separate legend. Separating years and pooled estimates into labelled panels reduces overlap and distinguishes the different levels of aggregation. Matching confidence-interval colours to their points also clarifies which uncertainty range belongs to each estimate. Although this layout requires comparisons across panels rather than within one plot, shared axes maintain a consistent scale and support those comparisons.

Biological interpretation

Seasonal patterns differed among years. In 2008, estimated inlet use declined from before June to early June, then increased slightly in late June. In 2009, it generally declined towards July, with a temporary increase in late June. In contrast, 2010 estimates increased from early June to a peak in early July before falling sharply after mid-July. The pooled estimates were highest before June and lowest after mid-July. These are descriptive comparisons; confidence-interval overlap or separation alone does not establish statistically significant differences.

Limitations

Digitisation introduces uncertainty from image resolution, axis calibration and manual point placement. The extracted confidence limits reproduce the published intervals approximately; they do not account for digitisation error.

The pooled estimates were extracted separately and were not recalculated from the annual estimates. The digitised summary data cannot reproduce the original individual-level statistical analysis.

7. Exporting the reconstructed figure

Show R code
dir.create(
  here::here("outputs", "workshop3"),
  recursive = TRUE,
  showWarnings = FALSE
)

ggsave(
  filename = here::here(
    "outputs", "workshop3",
    "harbour_seal_reconstructed.png"
  ),
  plot = reconstructed_plot,
  width = 12,
  height = 8,
  units = "in",
  dpi = 300,
  bg = "white"
)

ggsave(
  filename = here::here(
    "outputs", "workshop3",
    "harbour_seal_reconstructed.pdf"
  ),
  plot = reconstructed_plot,
  width = 12,
  height = 8,
  units = "in",
  device = "pdf"
)

8. Reproducibility and assistance

To reproduce this report, open the RStudio project and render this Quarto document. Required inputs are the original figure and organised digitised CSV in data/workshop3/. Retain plot-data.csv as the record of the original extracted coordinates.

Show R code
sessionInfo()
R version 4.5.1 (2025-06-13 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26200)

Matrix products: default
  LAPACK version 3.12.1

locale:
[1] LC_COLLATE=English_Malaysia.utf8  LC_CTYPE=English_Malaysia.utf8   
[3] LC_MONETARY=English_Malaysia.utf8 LC_NUMERIC=C                     
[5] LC_TIME=English_Malaysia.utf8    

time zone: Australia/Brisbane
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] knitr_1.52      here_1.0.2      lubridate_1.9.5 forcats_1.0.1  
 [5] stringr_1.6.0   dplyr_1.2.1     purrr_1.2.2     readr_2.2.0    
 [9] tidyr_1.3.2     tibble_3.3.1    ggplot2_4.0.4   tidyverse_2.0.0

loaded via a namespace (and not attached):
 [1] generics_0.1.4     stringi_1.8.9      hms_1.1.4          digest_0.6.39     
 [5] magrittr_2.0.5     evaluate_1.0.5     grid_4.5.1         timechange_0.4.0  
 [9] RColorBrewer_1.1-3 fastmap_1.2.0      rprojroot_2.1.1    jsonlite_2.0.0    
[13] scales_1.4.0       coro_1.1.0         textshaping_1.0.5  httr2_1.3.0       
[17] cli_3.6.6          rlang_1.3.0        crayon_1.5.3       bit64_4.8.6       
[21] withr_3.0.3        yaml_2.3.12        otel_0.2.0         tools_4.5.1       
[25] parallel_4.5.1     tzdb_0.5.0         vctrs_0.7.3        R6_2.6.1          
[29] lifecycle_1.0.5    htmlwidgets_1.6.4  bit_4.6.0          vroom_1.7.1       
[33] ragg_1.5.2         pkgconfig_2.0.3    pillar_1.11.1      gtable_0.3.6      
[37] glue_1.8.1         systemfonts_1.3.2  xfun_0.61          tidyselect_1.2.1  
[41] rstudioapi_0.19.0  farver_2.1.2       htmltools_0.5.9    rmarkdown_2.32    
[45] ellmer_0.5.0       compiler_4.5.1     S7_0.2.2          

References

Blundell, G. M., & Pendleton, G. W. (2015). Factors affecting haul-out behavior of harbor seals (Phoca vitulina) in tidewater glacier inlets in Alaska: Can tourism vessels and seals coexist? PLOS ONE, 10(5), e0125486. https://doi.org/10.1371/journal.pone.0125486

PlotDigitizer. https://plotdigitizer.com/