diff --git a/vignettes/convert_output_details.Rmd b/vignettes/convert_output_details.Rmd index cfdbb2fb..fddfca3e 100644 --- a/vignettes/convert_output_details.Rmd +++ b/vignettes/convert_output_details.Rmd @@ -46,14 +46,12 @@ The converter manipulates data sets by recognizing patterns based on the assessm The data is manipulated to follow the format in @tbl-cols. The majority of the code in the function is specific for how one would manipulate the output with the following exceptions. The code in the converter creates an empty data frame with the columns referenced in @tbl-cols (See [code](https://github.com/nmfs-ost/stockplotr/blob/c8db61f325e9926461c70ef2d62349eb8d2bf2dd/R/convert_output.R#L45-L81)). At the end of the function, standard naming conventions are applied to rename labels of parameters or quantities as followed in @sec-namecon. Currently, we have files to use as examples to change the names of labels following our convention. One of the example files can be downloaded [here](https://github.com/nmfs-ost/stockplotr/blob/main/inst/resources/ss3_var_names.xlsx). The final data frame is exported to the user's environment as an object, if it is assigned an object name (e.g., `my_converted_output <- convert_output(...)`). - ```{r, echo=TRUE} #| eval: false load("example_conout.rda") head(hake_conout) ``` - The data frame is structured in following the convention of FIMS but removing the use of S4 or S3 data frame classes encouraging a more user friendly set up to start. The following format outlines the standard data frame: | Column label | Description | @@ -160,12 +158,13 @@ In conclusion, the final data frame should be very long with repeating years and -- `plot_abundance_at_age` = "abundance" -- `plot_age_to_length_conversion` = "age_to_length_conversion" -- `plot_biomass_at_age` = "biomass" -- `plot_biomass` = "biomass_biomass_unfished|biomass_ratio", "^biomass$" -- depends on wanting relative values -- `plot_catch_at_age` = "catch|landings" (whatever variation of this is available -- typically only one because we are looking at only catch with age) -- `plot_composition`/`plot_composition_diagnostics` = + +- `plot_abundance_at_age()` : "abundance" +- `plot_age_to_length_conversion()` : "age_to_length_conversion" +- `plot_biomass_at_age()` : "biomass" +- `plot_biomass()` : "biomass_biomass_unfished|biomass_ratio", "^biomass$" -- depends on wanting relative values +- `plot_catch_at_age()` : "catch|landings" (whatever variation of this is available -- typically only one because we are looking at only catch with age) +- `plot_composition()`/`plot_composition_diagnostics()` : [1] "length_composition_observed" [2] "length_composition_predicted" [3] "length_composition_pearson_residual" @@ -174,8 +173,18 @@ In conclusion, the final data frame should be very long with repeating years and [6] "age_composition_predicted" [7] "age_composition_pearson_residual" [8] "age_composition_sample_size" -- `plot_data_availability` = see function data_availability in the file plot_data_availability.R -- `plot_discard` = "^discard" -- fits are ^discard_(observed|predicted)$" +- `plot_data_availability()` : see function data_availability in the file plot_data_availability.R +- `plot_discard()` : "^discard" -- fits are ^discard_(observed|predicted)$" +- `plot_fishing_mortality()` : "\^fishing_mortality\$" +- `plot_index()` : "\^index\_(observed\|predicted)\$" +- `plot_joint_residuals()` : "\^index\_(observed\|predicted)\$" +- `plot_landings()` : "catch", "catch_predicted", "landings_observed", "landings_observed_weight", "landings_observed_numbers", "catch_predicted", "landings" +- `plot_natural_mortality()` : "natural_mortality" +- `plot_recruitment_deviations()` : "recruitment_deviations" +- `plot_recruitment()` : "recruitment\$", "predicted_recruitment", "expected_recruitment" +- `plot_retrospective()` : Inherits naming from plot_biomass(), plot_spawning_biomass(), plot_fishing_mortality(), plot_recruitment(), or plot_spr() +- `plot_runs_test()` : "\^index\_(observed\|predicted)\$" +- `plot_selectivity()` : "selectivity" - `plot_spawning_biomass()`: "spawning_biomass_spawning_biomass_{ref_line}", "spawning_biomass_ratio", "^spawning_biomass$" - `plot_spr()`: "spr" - `plot_stock_recruitment()`: "recruitment"