Skip to main content

Do charr that swim farther leave shelter sooner?

The same behaviours can be associated differently among fish and across trials

The question. A fish that usually travels farther than other fish may also leave shelter sooner. But on a particular trial, does a fish that travels farther than usual also leave sooner than usual? These are separate questions about between-fish and within-fish associations.

Choose a route. To work in R, follow the steps in order from the two trials to Finish the example. You’ll open the workbook, fit and check one model, then read and recalculate an interval from the paper. To read along without R, look at the two trials, then jump to the paper’s comparison.

Home · Framework

Look at two trials from one fish

A row in the workbook represents one fish on one trial. Here are two trials from the same fish. Distance is how far it travelled, and exit time is how long it took to first leave shelter.

Show how the two-trial table is made
tutorial_dir <- if (dir.exists("tutorial/data")) "tutorial" else "."
workbook <- file.path(tutorial_dir, "data", "arctic-charr-original.xlsx")
charr <- readxl::read_excel(workbook, sheet = "Sheet 1 - Tableau 1")

# Fish numbers can recur across forms. Use both columns for the fish key.
fish_key <- paste(charr$Morph, charr$Indiv, sep = "_")
one_fish <- charr[fish_key == fish_key[1], ]
one_fish <- one_fish[order(one_fish$Replicate), ]

example_trials <- data.frame(
  Trial = one_fish$Replicate,
  `Distance (cm)` = round(one_fish$Dtot, 1),
  `Exit time (s)` = round(one_fish$Exit.time, 1),
  check.names = FALSE
)
knitr::kable(example_trials, caption = "Two trials from the same fish.")
Two trials from the same fish.
Trial Distance (cm) Exit time (s)
A 364.8 33.8
B 188.5 62.0

Between fish, ask whether fish that usually swim farther also tend to leave shelter sooner. Within a fish, ask whether it tends to leave sooner on trials when it swims farther than usual. These two rows show what a repeat looks like. The fitted association uses all the fish and trials.

Prepare the observations

Extract the reproduction download. Open a terminal in the extracted folder containing tutorial/ and analysis/. Use that same folder as your working directory in R. For this route, install readxl, digest and glmmTMB in R. To recreate the displayed tables from their optional code, also install knitr.

install.packages(c("readxl", "digest", "glmmTMB"))

Run the preparation script in the terminal. It standardises each behaviour using its observed values and stacks the data so each fitted row holds one observed behaviour on one fish’s trial.

Rscript --vanilla tutorial/data/prepare-charr.R

Look for 1,185 fish, 2,370 trials, nine behaviours and 21,278 observed trait values. The script saves the prepared data in analysis/cache/tutorial-data/charr-nine-intercept.rds.

What data support that comparison?

We use nine behaviours and retain 21,278 observed trait values. The analysis treats angular velocity as missing on the 50 trials with zero total distance; two negative border-duration values were also set to missing. Other observed traits from those trials remain in the analysis. Because angular velocity is linked to movement, correlations involving it rely on the fitted joint model where those measurements are absent. This example shows how a multivariate model can retain observed responses when another response is missing. It does not model the process associated with this movement-linked missingness.

Exit time and distance are right-skewed in the analysis data, and 50 distance measurements are zero. Exit times do not pile up at the largest recorded value. The Gaussian model gives a working summary of their associations on the standardised scale.

Fit and check the charr model

The Gaussian model fits a mean for each trait and two shared axes at each level. It estimates separate covariance matrices for differences among fish and deviations within fish. We omit treatment, morph and tank effects in this illustrative model. With no trial effect, a change shared across fish can contribute to the fitted within-fish association.

Run the existing glmmTMB fit in the terminal. Use one computation thread to match the checked run. On macOS or Linux, run both lines below. In Windows PowerShell, use $env:OPENBLAS_NUM_THREADS = "1"; $env:OMP_NUM_THREADS = "1" for the first line. Wait for the fit command to finish successfully before reading its output files.

export OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1
Rscript --vanilla tutorial/downloads/charr/fit-charr.R glmmTMB

On the Mac used to check this lesson, the fit ran in about 51 seconds with glmmTMB 1.1.14. The script refines its initial solution with BFGS. The initial fit can stop at its iteration limit, so use the diagnostics of the continued fit. The script writes the diagnostics and fresh estimates to analysis/cache/tutorial-data/.

In R, print the diagnostic row. Continue when numerical_checks_pass is TRUE. If it is FALSE, keep the diagnostics and check the fit guidance before interpreting a correlation. In the checked run, the continued fit had convergence code 0, a positive-definite Hessian and a maximum absolute gradient of 0.0016.

diagnostics <- read.csv(
  "analysis/cache/tutorial-data/charr-glmmTMB-diagnostics.csv"
)
diagnostics
if (!isTRUE(diagnostics$numerical_checks_pass)) {
  stop("This fit did not pass. Check the diagnostics before reporting a result.")
}

Now print the two distance–exit time correlations from your fit. The first row compares fish. The second compares trials within fish.

fresh_charr <- read.csv(
  "analysis/cache/tutorial-data/charr-glmmTMB-point-results.csv"
)
stopifnot(all(fresh_charr$fit_passes_numerical_screen))
fresh_charr[, c("level", "distance_exit_correlation")]

Compare distance and exit time at two levels

Predict. If the between-fish correlation is more negative than the within-fish correlation, what sign will we get when we subtract within from between?

Check your prediction

Negative. The between-fish estimate is the smaller number, so between minus within is below zero.

The table shows the paper’s selected glmmTMB fit and its saved bootstrap intervals. A fresh fit can give slightly different estimates.

Show how the interval table is made
contrast_file <- file.path(
  tutorial_dir, "downloads", "charr", "distance-exit-contrast.csv"
)
contrast <- read.csv(contrast_file)
contrast_display <- data.frame(
  quantity = contrast$quantity,
  result = sprintf(
    "%.3f (%.3f to %.3f); %s paired refits",
    contrast$estimate, contrast$lower_95, contrast$upper_95, contrast$paired_refits
  )
)
names(contrast_display) <- c(
  "Quantity", "Estimate (95% interval) and paired refits"
)
knitr::kable(
  contrast_display,
  format = "html",
  row.names = FALSE,
  table.attr = 'class="mobile-results-table"',
  caption = "Distance and exit time in the two-axis Arctic charr model. The interval for the contrast is calculated within each retained paired bootstrap refit."
)
Distance and exit time in the two-axis Arctic charr model. The interval for the contrast is calculated within each retained paired bootstrap refit.
Quantity Estimate (95% interval) and paired refits
Between-fish correlation -0.739 (-0.832 to -0.657); 1066 paired refits
Within-fish correlation -0.506 (-0.540 to -0.471); 1066 paired refits
Between minus within -0.233 (-0.342 to -0.140); 1066 paired refits

Read the six-panel result

In Figure 2, find traits 1 (distance) and 2 (exit time). Panel A compares fish. Panel B compares trials within fish. The upper triangle gives the correlation estimates and the lower triangle gives the interval endpoints. A star marks an interval that excludes zero. The table above gives the same estimates and the direct contrast in text.

This is Figure 2 in the manuscript and the Figure Gallery.

If the panels look small on a narrow screen or at 200% zoom, press Tab until the figure has a visible outline, then use the arrow keys to scroll horizontally. The table above gives the exact values for distance and exit time.

Six-panel figure. A and B show between-fish and within-fish correlations, with estimates above the diagonal and lower and upper 95% limits below it. C and D show separate ordinations with grey estimated scores and numbered loading arrows. In E, blue circles and orange triangles are between- and within-fish communality estimates; capped horizontal lines are their 95% parametric-bootstrap percentile limits. F shows repeatability estimates for all nine traits, with horizontal lines marking their 95% parametric-bootstrap percentile limits. The numbered key follows the figure.

Six-panel summary of nine Arctic charr behaviours. Panels A and B compare correlations among fish and across trials within fish. C and D show separate two-axis ordinations. E compares communalities at both levels, and F shows repeatability.

Trait key. 1 Distance, 2 Exit time, 3 Border duration, 4 Centre visits, 5 Centre duration, 6 Shelter visits, 7 Entry visits, 8 Entry duration, 9 Angular velocity.

Recalculate the paper’s contrast interval

Subtract the within-fish correlation from the between-fish correlation within each retained refit, then take percentiles of those differences. The saved file already contains those differences. Read the draws and select the row type for this pair.

charr_draw_path <- "tutorial/downloads/bootstrap/main-examples/charr-target-draws.csv.gz"
if (!file.exists(charr_draw_path)) {
  charr_draw_path <- "downloads/bootstrap/main-examples/charr-target-draws.csv.gz"
}
charr_target_draws <- read.csv(gzfile(charr_draw_path))
distance_exit_draws <- subset(
  charr_target_draws,
  quantity == "correlation_contrast" &
    level == "between_minus_within" &
    trait_1 == "Distance" & trait_2 == "Exit time"
)
nrow(distance_exit_draws)
[1] 1066

You should see 1,066 retained draws out of 2,000 attempted pairs. The next block prints the lower and upper endpoints of the paper’s 95% interval.

round(quantile(distance_exit_draws$value, c(0.025, 0.975)), 3)
  2.5%  97.5% 
-0.342 -0.140 

The interval runs from −0.342 to −0.140. Under the fitted model and bootstrap screening rule, it supports a more negative association between fish. These commands recalculate the endpoints from saved draws.

Finish the example

Report the paper’s result. “Fish that tended to swim farther also tended to leave shelter sooner. The association was negative at both levels and more negative between fish than within fish (between minus within −0.233, 95% bootstrap interval −0.342 to −0.140).” This pair was chosen after inspecting the traits, so read it as an illustration of the two levels.

Report your fresh fit. “My glmmTMB fit passed the numerical screen. The distance–exit time correlation was [your estimate] between fish and [your estimate] within fish.” Quote any interval from the paper separately and name its source.

You’ve finished the main lesson when you can explain what one trial row represents, what the fit check showed, and what the contrast interval tells you. Next: Dogs

To try the same steps with your own data, identify the animal ID, the occasion ID and the trait column in your table.

Go further

How were the charr bootstrap refits selected?

Both packages had to pass the recorded convergence, gradient, likelihood and covariance checks, no competitive unqualified fit could remain, and every target quantity had to be extracted. Positive-definite Hessians were recorded separately but were not required for retention. The intervals describe the draws that passed this screen. If failed refits tended to give different estimates, retaining only passing refits could shift the endpoints. The coverage of these screened intervals has not been established. Of the 1,066 retained pairs, 950 had positive-definite Hessians in both packages. Percentile limits were calculated from the selected glmmTMB covariance matrices in each retained refit. The repository provides anonymised, derived target draws so readers can recalculate the displayed percentiles. It does not include the original replicate IDs, fitted objects, individual simulated responses, or campaign runner needed to rerun or audit the full bootstrap campaign.

Compare packages and check the number of shared axes

The gllvmTMB continuation gave similar point estimates in the recorded comparison. Its maximum absolute gradient was 0.0568, above the 0.01 threshold for a checked fresh fit. Use that output to compare the numerical behaviour of the two packages.

The worked example uses two shared axes at each level so each ordination fits in one panel. In the archived glmmTMB comparison on the same nine traits and observations, the two-between, two-within fit had lower AIC than the two-between, one-within fit (41,284.69 versus 43,616.49). Both passed the numerical fit checks. This comparison covers those two specifications. See Choosing latent rank for how to compare qualified fits on the same observations.

Complete R source for the paired charr model fits

Dependencies: readxl, digest, glmmTMB, and gllvmTMB.

#!/usr/bin/env Rscript
# Refit the selected nine-trait, intercept-only Arctic charr model.
# Run from the repository root after tutorial/data/prepare-charr.R.
# Usage: Rscript --vanilla tutorial/downloads/charr/fit-charr.R glmmTMB
#        Rscript --vanilla tutorial/downloads/charr/fit-charr.R gllvmTMB

args <- commandArgs(trailingOnly = TRUE)
if (length(args) != 1L || !args[[1L]] %in% c("glmmTMB", "gllvmTMB")) {
  stop("Choose one engine: glmmTMB or gllvmTMB.", call. = FALSE)
}
engine <- args[[1L]]
prepared_path <- file.path("analysis", "cache", "tutorial-data", "charr-nine-intercept.rds")
if (!file.exists(prepared_path)) {
  stop("Run tutorial/data/prepare-charr.R from the repository root first.", call. = FALSE)
}

prepared <- readRDS(prepared_path)
d <- prepared$long
traits <- prepared$traits
stopifnot(nrow(d) == 21278L, length(traits) == 9L,
          nlevels(d$individual) == 1185L, nlevels(d$occasion) == 2370L)
set.seed(20261109L)

if (engine == "glmmTMB") {
  suppressPackageStartupMessages(library(glmmTMB))
  form <- value ~ 0 + trait +
    rr(0 + trait | individual, d = 2) + diag(0 + trait | individual) +
    rr(0 + trait | occasion, d = 2)
  initial <- glmmTMB(form, data = d, family = gaussian(),
                     dispformula = ~ 0 + trait, REML = FALSE)
  starts <- initial$obj$env$parList(initial$fit$par)[c("beta", "betadisp", "theta")]
  fit <- glmmTMB(form, data = d, family = gaussian(),
    dispformula = ~ 0 + trait, REML = FALSE, start = starts,
    control = glmmTMBControl(optimizer = optim,
      optArgs = list(method = "BFGS"),
      optCtrl = list(maxit = 3000L, reltol = 1e-11)))
  convergence <- fit$fit$convergence
  positive_hessian <- isTRUE(fit$sdr$pdHess)
  max_gradient <- max(abs(fit$sdr$gradient.fixed))
  logLik_value <- as.numeric(logLik(fit))
  parameter_count <- attr(logLik(fit), "df")
  parameter_values <- fit$fit$par
} else {
  suppressPackageStartupMessages(library(gllvmTMB))
  form <- value ~ 0 + trait +
    latent(0 + trait | individual, d = 2, unique = TRUE) +
    latent(0 + trait | occasion, d = 2, unique = TRUE)
  initial <- gllvmTMB(form, data = d, trait = "trait", unit = "individual",
    unit_obs = "occasion", family = gaussian(), REML = FALSE)
  fit <- gllvmTMB(form, data = d, trait = "trait", unit = "individual",
    unit_obs = "occasion", family = gaussian(), REML = FALSE,
    control = gllvmTMBcontrol(optimizer = "optim", n_init = 1L,
      init_jitter = 0, start_from = initial,
      optArgs = list(method = "BFGS",
        control = list(maxit = 3000L, reltol = 1e-11))))
  convergence <- fit$fit_health$convergence
  positive_hessian <- isTRUE(fit$fit_health$pd_hessian)
  max_gradient <- max(abs(fit$tmb_obj$gr(fit$opt$par)))
  logLik_value <- -fit$opt$objective
  parameter_count <- length(fit$opt$par)
  parameter_values <- fit$opt$par
}

aic <- -2 * logLik_value + 2 * parameter_count
diagnostics <- data.frame(
  engine = engine,
  package_version = as.character(packageVersion(engine)),
  convergence = convergence,
  positive_hessian = positive_hessian,
  maximum_absolute_gradient = max_gradient,
  log_likelihood = logLik_value,
  parameters = parameter_count,
  AIC = aic,
  numerical_checks_pass = isTRUE(convergence == 0) && positive_hessian &&
    is.finite(max_gradient) && max_gradient <= 0.01 &&
    is.finite(logLik_value) && is.finite(parameter_count) &&
    all(is.finite(parameter_values))
)
print(diagnostics, row.names = FALSE)

normal_matrix <- function(x, traits) {
  x <- as.matrix(x)
  if (!identical(dim(x), c(length(traits), length(traits))))
    stop("Covariance dimension does not match the trait list.")
  strip <- function(z) sub("^trait", "", z)
  rn <- rownames(x); cn <- colnames(x)
  if (!is.null(rn) && !is.null(cn)) {
    if (!setequal(strip(rn), traits) || !setequal(strip(cn), traits))
      stop("Covariance labels do not match the prepared trait order.")
    x <- x[match(traits, strip(rn)), match(traits, strip(cn)), drop = FALSE]
  }
  dimnames(x) <- list(traits, traits)
  x
}

extract_glmm_matrices <- function(fit, traits) {
  vc <- glmmTMB::VarCorr(fit)$cond
  out <- list()
  for (tier in c("B", "W")) {
    group <- if (tier == "B") "individual" else "occasion"
    keys <- names(vc)[sub("\\.[0-9]+$", "", names(vc)) == group]
    codes <- vapply(vc[keys], function(x) names(attr(x, "blockCode"))[1L],
                    character(1))
    rr <- keys[codes == "rr"]
    diagonal <- keys[codes == "diag"]
    if (length(rr) != 1L) stop("Expected one shared covariance block at ", tier)
    shared <- normal_matrix(vc[[rr]], traits)
    if (tier == "B") {
      if (length(diagonal) != 1L) stop("Expected one between-fish unique block.")
      unique <- normal_matrix(vc[[diagonal]], traits)
    } else {
      if (length(diagonal)) stop("Unexpected within-fish diagonal block.")
      beta <- glmmTMB::fixef(fit)$disp
      wanted <- paste0("trait", traits)
      if (length(beta) != length(traits) || !setequal(names(beta), wanted))
        stop("Expected one Gaussian dispersion parameter per trait.")
      unique <- diag(exp(2 * beta[match(wanted, names(beta))]), length(traits))
      dimnames(unique) <- list(traits, traits)
    }
    out[[paste0(tier, "_shared")]] <- shared
    out[[paste0(tier, "_unique")]] <- unique
    out[[paste0(tier, "_total")]] <- shared + unique
  }
  out
}

extract_gllvm_matrices <- function(fit, traits) {
  out <- list()
  for (tier in c("B", "W")) {
    level <- if (tier == "B") "unit" else "unit_obs"
    total <- normal_matrix(gllvmTMB::extract_Sigma(
      fit, level = level, part = "total", link_residual = "none")$Sigma,
      traits)
    shared <- normal_matrix(gllvmTMB::extract_Sigma(
      fit, level = level, part = "shared", link_residual = "none")$Sigma,
      traits)
    unique_result <- gllvmTMB::extract_Sigma(
      fit, level = level, part = "unique", link_residual = "none")
    unique <- if (is.null(unique_result$Sigma)) {
      diag(as.numeric(unique_result$s), length(traits))
    } else normal_matrix(unique_result$Sigma, traits)
    if (is.null(dimnames(unique))) dimnames(unique) <- list(traits, traits)
    if (tier == "W") {
      observation_variance <- as.numeric(fit$report$sigma_eps)^2
      unique <- unique + diag(observation_variance, length(traits))
      total <- total + diag(observation_variance, length(traits))
    }
    out[[paste0(tier, "_shared")]] <- shared
    out[[paste0(tier, "_unique")]] <- unique
    out[[paste0(tier, "_total")]] <- total
  }
  out
}

matrices <- if (engine == "glmmTMB") extract_glmm_matrices(fit, traits) else
  extract_gllvm_matrices(fit, traits)
for (tier in c("B", "W")) {
  shared <- matrices[[paste0(tier, "_shared")]]
  unique <- matrices[[paste0(tier, "_unique")]]
  total <- matrices[[paste0(tier, "_total")]]
  stopifnot(max(abs(total - shared - unique)) < 1e-8,
            max(abs(unique - diag(diag(unique)))) < 1e-8,
            min(eigen((total + t(total))/2, symmetric = TRUE,
                      only.values = TRUE)$values) >= -1e-8)
}
distance <- match("Dtot", traits)
exit_time <- match("Exit.time", traits)
point_results <- do.call(rbind, lapply(c("B", "W"), function(tier) {
  total <- matrices[[paste0(tier, "_total")]]
  shared <- matrices[[paste0(tier, "_shared")]]
  data.frame(
    engine = engine,
    level = if (tier == "B") "Between fish" else "Within fish",
    distance_exit_correlation = stats::cov2cor(total)[distance, exit_time],
    distance_communality = diag(shared)[distance] / diag(total)[distance],
    exit_time_communality = diag(shared)[exit_time] / diag(total)[exit_time],
    distance_repeatability = if (tier == "B") {
      diag(matrices$B_total)[distance] /
        (diag(matrices$B_total)[distance] + diag(matrices$W_total)[distance])
    } else NA_real_,
    exit_time_repeatability = if (tier == "B") {
      diag(matrices$B_total)[exit_time] /
        (diag(matrices$B_total)[exit_time] + diag(matrices$W_total)[exit_time])
    } else NA_real_
  )
}))
point_results$fit_passes_numerical_screen <- diagnostics$numerical_checks_pass
print(point_results, row.names = FALSE)
if (!diagnostics$numerical_checks_pass) {
  warning("The fresh point estimates are diagnostic only because the fit did not pass the numerical screen.",
          call. = FALSE)
}

out_dir <- file.path("analysis", "cache", "tutorial-data")
dir.create(out_dir, recursive = TRUE, showWarnings = FALSE)
utils::write.csv(diagnostics, file.path(out_dir, paste0("charr-", engine, "-diagnostics.csv")),
                 row.names = FALSE)
utils::write.csv(point_results,
                 file.path(out_dir, paste0("charr-", engine, "-point-results.csv")),
                 row.names = FALSE)
saveRDS(list(initial = initial, fit = fit, diagnostics = diagnostics,
             matrices = matrices, point_results = point_results),
        file.path(out_dir, paste0("charr-", engine, "-fit.rds")))

Use the full trait results

Read the ordinations, communality and repeatability in Figure 2C–F

An ordination summarises the shared pattern with a few axes. Each arrow is a loading: it shows how strongly, and in which direction, a behaviour contributes to an axis. We use varimax, an orthogonal rotation, to turn the axes for easier interpretation. It changes the display, not the covariance represented by the model. We rotate the between-fish and within-fish axes separately, so axis 1 at one level need not represent the same combination of behaviours as axis 1 at the other.

The ordinations give a joint view of how the nine behaviours contribute to shared patterns. Distance and exit time point in opposite directions along the first displayed axis at both levels, consistent with their negative correlations. The arrows summarise the shared structure, while the matrices report the correlations themselves. Both axes contribute to the covariance, and the total trait variances also enter the correlation calculation.

In panel E, circles and triangles mark point estimates, and capped horizontal lines show 95% parametric-bootstrap percentile limits. The scale leaves a small margin beyond 1 so limits at the upper bound do not end on the plot frame. The communality table gives the exact limits. Use it when a short line is partly hidden beneath a marker.

Communality: how much variation follows the shared pattern?

Communality divides the variance represented by the shared axes by the total variance at that level. For distance, the estimated communalities were 0.951 between fish and 0.980 within fish. For exit time, they were 0.612 and 0.360, respectively. Distance variation was therefore closely represented by the shared pattern at both levels, while a smaller fraction of exit-time variation was represented by that pattern. Panel E includes intervals for all nine traits at both levels. Some bars are short because their limits are close together. The near-one values are boundary estimates. A shared fraction near one cannot identify a shared biological cause. Between fish, border duration, centre visits and centre duration round to 1.00 because their fitted trait-specific variances are near zero. Use the linked intervals to see how precisely each shared fraction is estimated.

Is the shared pattern more important between fish or within fish? For each retained refit, we subtract the within-fish communality from the between-fish communality for the same behaviour. The saved draws include these differences. Here we take the 2.5th and 97.5th percentiles for distance and exit time.

distance_communality <- subset(
  charr_target_draws, quantity == "communality_contrast" & trait_1 == "Distance"
)
exit_communality <- subset(
  charr_target_draws, quantity == "communality_contrast" & trait_1 == "Exit time"
)

round(rbind(
  Distance = quantile(distance_communality$value, c(0.025, 0.975)),
  `Exit time` = quantile(exit_communality$value, c(0.025, 0.975))
), 3)
            2.5% 97.5%
Distance  -0.052 0.006
Exit time  0.123 0.421

For distance, the fitted difference was −0.029, and its interval (−0.052 to 0.006) includes zero. For exit time, the fitted difference was 0.251, and its interval (0.123 to 0.421) is entirely positive. So the shared pattern accounts for a larger fraction of the differences in exit time among fish than of changes in exit time across trials within fish.

Repeatability: how much variation lies between fish?

Repeatability uses a different denominator. It is between-fish variance divided by total between- plus within-fish variance. Distance repeatability was 0.197, with a 95% interval from 0.161 to 0.236. About one-fifth of its total variation was between fish in this model. Panel F shows repeatability estimates and 95% limits for all nine behaviours. High communality and modest repeatability can occur together: most between-fish variation in distance follows the shared pattern, even though between-fish variation is only a modest part of distance’s total variation.

The figure places communality before repeatability because this paper focuses on correlations and shared structure. Repeatability provides a familiar reference for interpreting how the variance is divided between fish and trials.

The correlation table, communality table, repeatability table, and numbered trait key include all nine behaviours. The Figure Gallery contains each complete plotting script in the page and offers the same script as a download. It also records the source files, hashes, packages and limits of the saved results.