← Back to all sparks
S

stockplotr

ANALYTICS
Velocity0.0

Tables and Figures for Stock Assessments

A stock-assessment plotting package is growing a table engine to match its figures.

rfisheriesstock-assessmentreportingdata-viz
Current state
stockplotr generates the figures and, since 0.8.0-beta, the tables that go into NOAA fisheries stock assessment reports. The 0.8.0 release swapped the table backend from flextable to gt and shipped table_landings() as the first table function; 0.9.0 exported it with an interface deliberately mirroring the plot functions. Alongside that, convert_output() moved in from the sister package asar so model output is standardized here rather than upstream.
Where it's heading
The package is consolidating the whole report-artifact pipeline in one place: standardize model output, then emit both figures and tables from the same long-format frame. Pulling convert_output() out of asar because stockplotr depended on it more heavily is the clearest signal of where the center of gravity now sits. Everything is still tagged beta, and the plot function count is growing faster than the table one.
Prediction
More table_* functions built on the gt foundation are the obvious next step, matching the existing plot_* set; the 0.9.0 notes describe table_landings() as the first of a revamped family rather than a one-off.

Recent moves

  1. 5mo ago

    table_landings() exported with a plot-like interface

    Exports table_landings() with an interface that matches the plot functions, adds a package cheatsheet, and fixes plot_spawning_biomass() when process_data() returns a zero-length character facet. This is the delivery of the table foundation laid in 0.8.0.

    View source ↗
  2. 6mo ago

    Table engine moved to gt; first table function ships

    ⚡ SPARK

    The release where a plotting package became a plotting-and-tables package: the table backend moved from flextable to gt and table_landings() arrived as the first function built on it. 0.9.0 is the follow-through on this foundation.

    View source ↗
  3. 7mo ago

    convert_output() migrated in from asar

    convert_output() migrates in from the sister package asar, standardizing output from common stock assessment models into one long-format frame, with tests, example data and a vignette. A relocation rather than new capability, but it moves the standardization layer under the package that depends on it most.

    View source ↗
  4. 8mo ago

    Four new assessment figures; process_data() auto-indexing

    Four more report figures — natural mortality, fishing mortality, indices, landings — plus process_data() to auto-recognize indexing and support for selecting more than one module for cross-model comparison. Steady expansion of the figure catalog before the table work began.

    View source ↗