Skip to content

Commit

Permalink
bookmark error
Browse files Browse the repository at this point in the history
new error in tex file
  • Loading branch information
melissamonk-NOAA committed Feb 21, 2024
1 parent 607144e commit 31dd21b
Show file tree
Hide file tree
Showing 15 changed files with 1,194 additions and 826 deletions.
534 changes: 533 additions & 1 deletion documents/_main.tex

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions documents/nca/00a.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ knitr::knit_hooks$set(plot = function(x,options) {
library(dplyr)
load('saved_directories.Rdata')
load("00opts.Rdata")
Expand Down
6 changes: 0 additions & 6 deletions documents/nca/00bibliography.Rmd

This file was deleted.

2 changes: 1 addition & 1 deletion documents/nca/21f-.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ read_child(filein)
#### Indices of Abundance
\

A number of indices of abundance were explored for the recreational fleet. Discarded catch is available from onboard observer surveys, but was not included in indices. Indices developed for the assessment include:
A number of indices of abundance were explored for the recreational fleet (Figure \ref{fig:standardized-indices}) . Discarded catch is available from onboard observer surveys, but was not included in indices. Indices developed for the assessment include:

\begin{enumerate}

Expand Down
44 changes: 16 additions & 28 deletions documents/nca/53figures.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,13 @@ label = 'data-plot')
\FloatBarrier

```{r, results = 'asis'}
sa4ss::add_figure(
filein = file.path(
data_dir, "survey_indices", "NorthernCA.png"
),
caption = "Map of northern California assessment area with the total number of copper rockfish observed by site for each of the fishery-indpendent surveys considered. Also shown is the network of MPAs, the 3nm state maritime boundary and the CDFW blocks. The CDFW blocks are colored a darker blue if copper rockfish were observed by a survey and based on expert opinion from the fleet.",
alt_caption = "A map of the northern Califonria assessment area with the total number of copper rockfish observed by site for each of the fishery-indpendent surveys considered. Copper rockfish were most commonly observed in shallower waters and over rocky habitat.",
label = "survey-map"
)
sa4ss::add_figure(filein = file.path(data_dir, "survey_indices", "NorthernCA.png"),
caption = "Map of northern California assessment area with the total number of copper rockfish observed by site for each of the fishery-indpendent surveys considered. Also shown is the network of MPAs, the 3nm state maritime boundary and the CDFW blocks. The CDFW blocks are colored a darker blue if copper rockfish were observed by a survey and based on expert opinion from the fleet.",
alt_caption = "A map of the northern Califonria assessment area with the total number of copper rockfish observed by site for each of the fishery indpendent surveys considered. Copper rockfish were most commonly observed in shallower waters and over rocky habitat.",
label = "survey-map")
```

\pagebreak


<!-- ======================================================= -->
<!-- *************** Commercial Data *********************** -->
Expand All @@ -88,37 +84,32 @@ alt_caption = "The commercial dead fishery generally catches fish of 25 centimet
label = 'com-dead-len-data')
```

\pagebreak


```{r, results = 'asis'}
add_figure(
filein = file.path(model_dir, "plots", "comp_lendat_data_weighting_TA1.8_Commercial_Dead.png"),
caption = "Mean length for commercial dead fleet with 95 percent confidence intervals",
alt_caption = "Mean length for the commercial dead fleet were availbe from 1979 to 1981 1991 to 2000 2001 and 2016 to 2021. Mean length was around 40 to 45 centimeters for the majority of the time period and decreased to around 30 centimeters startin in 2019.",
label = 'mean-com-dead-len-data')
alt_caption = "Mean length for the commercial dead fleet were availbe from 1979 to 1981 1991 to 2000 2001 and 2016 to 2021 Mean length was around 40 to 45 centimeters for the majority of the time period and decreased to around 30 centimeters starting in 2019", label = 'mean-com-dead-len-data')
```

\pagebreak


```{r, results = 'asis'}
add_figure(
filein = file.path(model_dir, "plots", "comp_condAALdat_bubflt1mkt0.png"),
caption = "Conditional age-at-length composition data from the commercial dead fleet",
alt_caption = "The condition age at length composition through time follows the expected patter of the growth curve with the data trunkcated in some yeras to fish 40 centimeters and larger.",
label = 'com-dead-age-data')
alt_caption = "The condition age at length composition through time follows the expected patter of the growth curve with the data truncated in some years to fish 40 centimeters and larger", label = 'com-dead-age-data')
```

\pagebreak

```{r, results = 'asis'}
add_figure(
filein = file.path(model_dir, "plots", "comp_lendat_bubflt2mkt0.png"),
caption = "Length composition data from the commercial live fleet",
alt_caption = "The commercial live fishery generally catches fish between 22 and 50 centimeters.",
label = 'com-live-len-data')
alt_caption = "The commercial live fishery generally catches fish between 22 and 50 centimeters", label = 'com-live-len-data')
```

\pagebreak

```{r, results = 'asis'}
add_figure(
Expand All @@ -128,8 +119,6 @@ alt_caption = "The mean length for the commercial live fishery was between 34 an
label = 'mean-com-live-len-data')
```

\pagebreak

<!-- ======================================================= -->
<!-- ************ Recreational Indices ********************* -->
<!-- ======================================================= -->
Expand Down Expand Up @@ -966,22 +955,21 @@ alt_caption = "The general trend in the index was fit well but did not capture t

```{r, results = 'asis'}
add_figure(
filein = file.path(model_dir, "plots", "index5_logcpuefit_CCFRP.png"),
caption = "Fit to log index data on log scale for CCFRP survey. Lines indicate 95% uncertainty interval around index values based on the model assumption of lognormal error. Thicker lines (if present) indicate input uncertainty before addition of estimated additional uncertainty parameter",
filein = file.path(model_dir, "plots", "index5_logcpuefit_CCFRP.png"),
caption = "Fit to log index data on log scale for CCFRP survey. Lines indicate 95% uncertainty interval around index values based on the model assumption of lognormal error. Thicker lines (if present) indicate input uncertainty before addition of estimated additional uncertainty parameter",
alt_caption = "The CCFRP survey index was fit well by the model. Only one year 2013 did not intersect with the increased estimated uncertainty.", label = 'ccfrp-index-fit')
```


\pagebreak


```{r, results = 'asis'}
add_figure(
filein = file.path(model_dir, "plots", "index9_standcpueall.png"),
caption = "Standardized indices overlaid. Each index is rescaled to have mean observation = 1.0. Note, the MRFSS CPFV (Rec_CPFV) fishery-dependent and CDFW ROV fishery-independent indices of abundance were not fit in the model but are included here for illustration.",
alt_caption = "The indices genearlly track trends in the same direction over time.", label = 'standardized-indices')
filein = file.path(model_dir, "plots", "index9_standcpueall.png"),
caption = "Standardized indices overlaid. Each index is rescaled to have mean observation equalt to 1.0. The MRFSS CPFV (Rec CPFV) fishery-dependent and CDFW ROV fishery-independent indices of abundance were not fit in the model but are included here for illustration",
alt_caption = "The indices generally track trends in the same direction over time", label = 'standardized-indices')
```

\pagebreak

### Time-series

Expand Down
12 changes: 6 additions & 6 deletions documents/nca/60appendix_caal.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ len_fit = plot_info[which(plot_info$category == "LenComp"), ]
plot.vec = grep("comp_lenfit_flt", len_fit$label)
filein = file.path(model_dir, "plots")
for (a in plot.vec){
cap = len_fit$caption[a]
lab = len_fit$label[a]
cap = gsub("<br>", " ", gsub("_", " ", len_fit$caption[a]))
lab = gsub("_", "-", len_fit$label[a])
add_figure(filein = file.path(filein, len_fit$file[a]),
caption = cap,
label = lab,
Expand Down Expand Up @@ -55,8 +55,8 @@ find = sort(len_fit$label[plot.vec], index.return = TRUE)$ix
plot.vec = plot.vec[find[2:length(find)]]
filein = file.path(model_dir, "plots")
for (a in plot.vec){
cap = len_fit$caption[a]
lab = len_fit$label[a]
cap = gsub("\n", ". ", gsub("%", " percent", gsub("<br>", " ", gsub("_", " ", len_fit$caption[a]))))
lab = gsub("_", "-", len_fit$label[a])
add_figure(filein = file.path(filein, len_fit$file[a]),
caption = cap,
label = lab,
Expand All @@ -76,8 +76,8 @@ find = sort(len_fit$label[plot.vec], index.return = TRUE)$ix
plot.vec = plot.vec[find[2:length(find)]]
filein = file.path(model_dir, "plots")
for (a in plot.vec){
cap = len_fit$caption[a]
lab = len_fit$label[a]
cap = gsub("\n", ". ", gsub("%", " percent", gsub("<br>", " ", gsub("_", " ", len_fit$caption[a]))))
lab = gsub("_", "-", len_fit$label[a])
add_figure(filein = file.path(filein, len_fit$file[a]),
caption = cap,
label = lab,
Expand Down
4 changes: 2 additions & 2 deletions documents/nca/_create_doc.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Install the package if needed
#remotes::install_github("pfmc-assessments/sa4ss")
#remotes::install_github("pfmc-assessments/sa4ss", force = TRUE)
# devtools::load_all("C:/Users/Chantel.Wetzel/Documents/GitHub/r4ss")
library(sa4ss)
library(here)
Expand Down Expand Up @@ -142,7 +142,7 @@ sa4ss::es_table_tex(
csv_name = "table_labels.csv")

# Read and create tex files for tables listed in "table" folder in the doc
es_table_tex(
sa4ss::es_table_tex(
dir = getwd(),
save_loc = file.path(getwd(), "tex_tables"),
csv_name = "all_tables.csv")
Expand Down
68 changes: 24 additions & 44 deletions documents/nca/_main.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ knitr::knit_hooks$set(plot = function(x,options) {
library(dplyr)
load('saved_directories.Rdata')
load("00opts.Rdata")
Expand Down Expand Up @@ -145,15 +146,6 @@ address:

<!--chapter:end:00authors.Rmd-->

---
bibliography:
- sa4ss.bib
- pfmcassess.bib
- wcassess.bib
---

<!--chapter:end:00bibliography.Rmd-->

---
title: Status of copper rockfish (_Sebastes caurinus_) along the U.S. California coast north
of Point Conception in 2023
Expand Down Expand Up @@ -318,7 +310,7 @@ read_child(filein)
#### Indices of Abundance
\

A number of indices of abundance were explored for the recreational fleet. Discarded catch is available from onboard observer surveys, but was not included in indices. Indices developed for the assessment include:
A number of indices of abundance were explored for the recreational fleet (Figure \ref{fig:standardized-indices}) . Discarded catch is available from onboard observer surveys, but was not included in indices. Indices developed for the assessment include:

\begin{enumerate}

Expand Down Expand Up @@ -1368,17 +1360,13 @@ label = 'data-plot')
\FloatBarrier

```{r, results = 'asis'}
sa4ss::add_figure(
filein = file.path(
data_dir, "survey_indices", "NorthernCA.png"
),
caption = "Map of northern California assessment area with the total number of copper rockfish observed by site for each of the fishery-indpendent surveys considered. Also shown is the network of MPAs, the 3nm state maritime boundary and the CDFW blocks. The CDFW blocks are colored a darker blue if copper rockfish were observed by a survey and based on expert opinion from the fleet.",
alt_caption = "A map of the northern Califonria assessment area with the total number of copper rockfish observed by site for each of the fishery-indpendent surveys considered. Copper rockfish were most commonly observed in shallower waters and over rocky habitat.",
label = "survey-map"
)
sa4ss::add_figure(filein = file.path(data_dir, "survey_indices", "NorthernCA.png"),
caption = "Map of northern California assessment area with the total number of copper rockfish observed by site for each of the fishery-indpendent surveys considered. Also shown is the network of MPAs, the 3nm state maritime boundary and the CDFW blocks. The CDFW blocks are colored a darker blue if copper rockfish were observed by a survey and based on expert opinion from the fleet.",
alt_caption = "A map of the northern Califonria assessment area with the total number of copper rockfish observed by site for each of the fishery indpendent surveys considered. Copper rockfish were most commonly observed in shallower waters and over rocky habitat.",
label = "survey-map")
```

\pagebreak


<!-- ======================================================= -->
<!-- *************** Commercial Data *********************** -->
Expand All @@ -1392,37 +1380,32 @@ alt_caption = "The commercial dead fishery generally catches fish of 25 centimet
label = 'com-dead-len-data')
```

\pagebreak


```{r, results = 'asis'}
add_figure(
filein = file.path(model_dir, "plots", "comp_lendat_data_weighting_TA1.8_Commercial_Dead.png"),
caption = "Mean length for commercial dead fleet with 95 percent confidence intervals",
alt_caption = "Mean length for the commercial dead fleet were availbe from 1979 to 1981 1991 to 2000 2001 and 2016 to 2021. Mean length was around 40 to 45 centimeters for the majority of the time period and decreased to around 30 centimeters startin in 2019.",
label = 'mean-com-dead-len-data')
alt_caption = "Mean length for the commercial dead fleet were availbe from 1979 to 1981 1991 to 2000 2001 and 2016 to 2021 Mean length was around 40 to 45 centimeters for the majority of the time period and decreased to around 30 centimeters starting in 2019", label = 'mean-com-dead-len-data')
```

\pagebreak


```{r, results = 'asis'}
add_figure(
filein = file.path(model_dir, "plots", "comp_condAALdat_bubflt1mkt0.png"),
caption = "Conditional age-at-length composition data from the commercial dead fleet",
alt_caption = "The condition age at length composition through time follows the expected patter of the growth curve with the data trunkcated in some yeras to fish 40 centimeters and larger.",
label = 'com-dead-age-data')
alt_caption = "The condition age at length composition through time follows the expected patter of the growth curve with the data truncated in some years to fish 40 centimeters and larger", label = 'com-dead-age-data')
```

\pagebreak

```{r, results = 'asis'}
add_figure(
filein = file.path(model_dir, "plots", "comp_lendat_bubflt2mkt0.png"),
caption = "Length composition data from the commercial live fleet",
alt_caption = "The commercial live fishery generally catches fish between 22 and 50 centimeters.",
label = 'com-live-len-data')
alt_caption = "The commercial live fishery generally catches fish between 22 and 50 centimeters", label = 'com-live-len-data')
```

\pagebreak

```{r, results = 'asis'}
add_figure(
Expand All @@ -1432,8 +1415,6 @@ alt_caption = "The mean length for the commercial live fishery was between 34 an
label = 'mean-com-live-len-data')
```

\pagebreak

<!-- ======================================================= -->
<!-- ************ Recreational Indices ********************* -->
<!-- ======================================================= -->
Expand Down Expand Up @@ -2270,22 +2251,21 @@ alt_caption = "The general trend in the index was fit well but did not capture t

```{r, results = 'asis'}
add_figure(
filein = file.path(model_dir, "plots", "index5_logcpuefit_CCFRP.png"),
caption = "Fit to log index data on log scale for CCFRP survey. Lines indicate 95% uncertainty interval around index values based on the model assumption of lognormal error. Thicker lines (if present) indicate input uncertainty before addition of estimated additional uncertainty parameter",
filein = file.path(model_dir, "plots", "index5_logcpuefit_CCFRP.png"),
caption = "Fit to log index data on log scale for CCFRP survey. Lines indicate 95% uncertainty interval around index values based on the model assumption of lognormal error. Thicker lines (if present) indicate input uncertainty before addition of estimated additional uncertainty parameter",
alt_caption = "The CCFRP survey index was fit well by the model. Only one year 2013 did not intersect with the increased estimated uncertainty.", label = 'ccfrp-index-fit')
```


\pagebreak


```{r, results = 'asis'}
add_figure(
filein = file.path(model_dir, "plots", "index9_standcpueall.png"),
caption = "Standardized indices overlaid. Each index is rescaled to have mean observation = 1.0. Note, the MRFSS CPFV (Rec_CPFV) fishery-dependent and CDFW ROV fishery-independent indices of abundance were not fit in the model but are included here for illustration.",
alt_caption = "The indices genearlly track trends in the same direction over time.", label = 'standardized-indices')
filein = file.path(model_dir, "plots", "index9_standcpueall.png"),
caption = "Standardized indices overlaid. Each index is rescaled to have mean observation equalt to 1.0. The MRFSS CPFV (Rec CPFV) fishery-dependent and CDFW ROV fishery-independent indices of abundance were not fit in the model but are included here for illustration",
alt_caption = "The indices generally track trends in the same direction over time", label = 'standardized-indices')
```

\pagebreak

### Time-series

Expand Down Expand Up @@ -2550,8 +2530,8 @@ len_fit = plot_info[which(plot_info$category == "LenComp"), ]
plot.vec = grep("comp_lenfit_flt", len_fit$label)
filein = file.path(model_dir, "plots")
for (a in plot.vec){
cap = len_fit$caption[a]
lab = len_fit$label[a]
cap = gsub("<br>", " ", gsub("_", " ", len_fit$caption[a]))
lab = gsub("_", "-", len_fit$label[a])
add_figure(filein = file.path(filein, len_fit$file[a]),
caption = cap,
label = lab,
Expand Down Expand Up @@ -2595,8 +2575,8 @@ find = sort(len_fit$label[plot.vec], index.return = TRUE)$ix
plot.vec = plot.vec[find[2:length(find)]]
filein = file.path(model_dir, "plots")
for (a in plot.vec){
cap = len_fit$caption[a]
lab = len_fit$label[a]
cap = gsub("\n", ". ", gsub("%", " percent", gsub("<br>", " ", gsub("_", " ", len_fit$caption[a]))))
lab = gsub("_", "-", len_fit$label[a])
add_figure(filein = file.path(filein, len_fit$file[a]),
caption = cap,
label = lab,
Expand All @@ -2616,8 +2596,8 @@ find = sort(len_fit$label[plot.vec], index.return = TRUE)$ix
plot.vec = plot.vec[find[2:length(find)]]
filein = file.path(model_dir, "plots")
for (a in plot.vec){
cap = len_fit$caption[a]
lab = len_fit$label[a]
cap = gsub("\n", ". ", gsub("%", " percent", gsub("<br>", " ", gsub("_", " ", len_fit$caption[a]))))
lab = gsub("_", "-", len_fit$label[a])
add_figure(filein = file.path(filein, len_fit$file[a]),
caption = cap,
label = lab,
Expand Down
Loading

0 comments on commit 31dd21b

Please sign in to comment.