Package: stockplotr 0.15.0

Samantha Bredeck

stockplotr: Tables and Figures for Stock Assessments

Creates exploratory and finished tables and figures for stock assessment documents from U.S. stock assessment model outputs. This packages addresses parts of the stock assessment workflow that interprets outputs of stock assessment models as well as allows the analyst to create report ready tables and figures, reducing the need to create their own and format then when adding into a report. This package is intended to be used in conjuction with 'asar', a partially automated template for writing various stock assessment reports. Throughout development, we will be creating a set of standardized figures and tables for a stock assessment report, developing functions to produce a variety of diagonostic plots, and other helpful materials. The advantage of using this package over others is that it applies to a range of stock assessment model outputs and standardizes them.

Authors:Samantha Bredeck [aut, cre], Sophie Breitbart [aut, ctb], Steve Saul [aut], Kelli Johnson [ctb], Megumi Oshima [ctb]

stockplotr_0.15.0.tar.gz
stockplotr_0.15.0.zip(r-4.7-any)stockplotr_0.15.0.zip(r-4.6-any)stockplotr_0.15.0.zip(r-4.5-any)
stockplotr_0.15.0.tgz(r-4.6-any)stockplotr_0.15.0.tgz(r-4.5-any)
stockplotr_0.15.0.tar.gz(r-4.7-any)stockplotr_0.15.0.tar.gz(r-4.6-any)
stockplotr_0.15.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
stockplotr/json (API)

# Install 'stockplotr' in R:
install.packages('stockplotr', repos = c('https://nmfs-opensci.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/nmfs-ost/stockplotr/issues

Datasets:

On CRAN:

Conda:

7.77 score 20 stars 1 packages 20 scripts 34 exports 65 dependencies

Last updated from:fc83c59e84. Checks:7 WARNING, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develWARNING707
source / vignettesOK317
linux-releaseWARNING659
macos-releaseWARNING662
macos-oldrelWARNING824
windows-develWARNING791
windows-releaseWARNING707
windows-oldrelWARNING751
wasm-releaseOK125

Exports:convert_outputcreate_latex_tablecreate_rdaexport_rdaextract_caps_alttextfilter_dataplot_aaplot_abundance_at_ageplot_biomassplot_biomass_at_ageplot_catch_compplot_discardplot_fishing_mortalityplot_indexplot_landingsplot_natural_mortalityplot_obsvpredplot_recruitmentplot_recruitment_deviationsplot_selectivityplot_spawning_biomassplot_stock_recruitmentplot_timeseriesprocess_dataprocess_tablereference_linesave_all_plotstable_biomass_abundance_catchtable_indextable_landingstable_projectionstable_total_catchtheme_noaatheme_table

Dependencies:base64encbigDbitopsbslibcachemclicommonmarkcpp11curldata.tabledigestdplyrevaluatefarverfastmapfontawesomefsgenericsggplot2gluegtgtablehighrhtmltoolshtmlwidgetsisobandjquerylibjsonlitejuicyjuiceknitrlabelinglifecyclelitedownmagrittrmarkdownmemoisemimepillarpkgconfigpurrrR6rappdirsRColorBrewerRcppreactablereactRrlangrmarkdownS7sassscalesstringistringrtibbletidyrtidyselecttinytexutf8V8vctrsviridisLitewithrxfunxml2yaml

Frequently Asked Questions (FAQs)
Captions and alternative text (alt text) | How are captions and alt text constructed? | How can I alter the captions and/or alt text? | If I recreate a figure or table, will its caption and/or alt text be updated/overwritten? | How can I change or update captions and alt text? | Individual figures/tables (e.g., plot_biomass()) | All available figures and tables (e.g., save_all_plots())

Last update: 2026-06-30
Started: 2026-05-08

Standardizing Assessment Model Output
Background | Set up and format | Naming Conventions | Final Formatting | Helpful Functions to Manipulate Data

Last update: 2026-05-18
Started: 2025-12-31

How captions and alternative text are generated
Templates | Calculating and exporting captions and alternative text | Connecting the tables & figures with the captions & alternative text | Expected outcomes | Single plot functions | Multi-plot functions

Last update: 2026-03-31
Started: 2025-03-18

Readme and manuals

Help Manual

Help pageTopics
Calculate key quantitiescalc_kqs
Create loop to test for differences in column valuescheck_label_differences
Convert Outputconvert_output
Create the rda package for a plot or tablecreate_latex_table
Create the rda package for a plot or tablecreate_rda
SS3 Example dataexample_data
Export updated key quantities templateexport_kqs
Export a figure or table to rdaexport_rda
Extract captions and alternative textsextract_caps_alttext
Substitute key quantities' values into templatefill_in_kqs
Filter data for input into aesthetics for ggplot2filter_data
Insert key quantities into the captions and alternative text fileinsert_kqs
Rename columns and merge estimate and uncertainty columns for table presentationmerge_error
Create "at-age" plotplot_aa
Plot Abundance at Ageplot_abundance_at_age
Plot Total Biomassplot_biomass
Plot Total Biomass at Age (BAA)plot_biomass_at_age
Plot catch compositionplot_catch_comp
Plot discardsplot_discard
Create plot with errorplot_error
Plot fishing mortality timeseriesplot_fishing_mortality
Plot Index of Abundanceplot_index
Plot observed landingsplot_landings
Plot natural mortality (M) at ageplot_natural_mortality
Plot observed vs. predicted dataplot_obsvpred
Plot Recruitmentplot_recruitment
Plot recruitment deviationsplot_recruitment_deviations
Plot selectivityplot_selectivity
Plot spawning biomass (SB)plot_spawning_biomass
Plot Stock Recruit Relationshipplot_stock_recruitment
Plot time series trendsplot_timeseries
Processing for figuresprocess_data
Processing for tablesprocess_table
Preformatted reference linereference_line
Export all figures and tablessave_all_plots
Biomass, abundance, and catch time series tabletable_biomass_abundance_catch
Index of abundance tabletable_index
Landed catch by fleet and year tabletable_landings
Create Projection Summary Tabletable_projections
Catch (table) by fleet, gear type, sectortable_total_catch
Add NOAA theming to ggplot2 objecttheme_noaa
Add NOAA formatting to a tabletheme_table