Skip to content

Vignettes: per-ecoregion prcp trend is % of normal per year but labelled mm/yr #102

Description

@NewGraphEnvironment

If we do it: the per-ecoregion roll-up tables in both vignettes label the precipitation trend in the unit it is actually in. If we never do: readers (and the fish_passage report appendices ported from these vignettes) read a percent-of-normal slope as millimetres per year.

Problem

The per-ecoregion roll-up builds its prcp column from res$trn, which data-raw/*_vignette_data.R computes with cd_trend(ano, ...) — a trend of anomalies. prcp's anomaly type is pct_normal, so the slope is % of normal per year, but the column is named `prcp mm/yr` and the caption says "annual precipitation trend (mm per year)":

  • vignettes/peace-fwcp.Rmd:758 and the caption at :772
  • vignettes/kootenay-lake.Rmd:854 and the caption at :868

Measured from the committed inst/vignette-data/peace_fwcp.rds: the first ecoregion's annual prcp trend from 1951 has slope 0.0521, on anomalies carrying anomaly_type = "pct_normal", unit = "%".

The plan review for #97 reports that the same label was ported into the fish_passage_peace_2025_reporting and fish_passage_skeena_2025_reporting appendices; not verified here.

Proposed Solution

  • Rename the column to `prcp %/yr` (or % normal/yr) and fix both captions; or, where mm/yr is what the prose wants, trend ts (raw values) instead of ano for prcp.
  • Check the downstream appendices for the same label.

Found by the plan review for #97.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions