Skip to content

Commit e4e4e2d

Browse files
use region abbrevs in table and fig captions instead of writing the whole thing out
1 parent 22cb59e commit e4e4e2d

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

markdown/ComplexResultTemplate.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
\newpage
1818

19-
```{r echo=FALSE,tab.cap='Summary by survey districts and depth intervals of {{year}} {{region}} trawl effort (number of hauls), number of hauls containing members of the {{spp_name_informal_low}}, and their mean CPUE and biomass estimates.', tab.id=paste0("table1-","{{species_code}}"), tab.cap.style = "Table caption",tab.align="left"}
19+
```{r echo=FALSE,tab.cap='Summary by survey districts and depth intervals of {{year}} {{SRVY}} trawl effort (number of hauls), number of hauls containing members of the {{spp_name_informal_low}}, and their mean CPUE and biomass estimates.', tab.id=paste0("table1-","{{species_code}}"), tab.cap.style = "Table caption",tab.align="left"}
2020
table3s_list[["{{ species_code }}"]] |>
2121
#table3s_list[[as.character("NRSSRS")]] |>
2222
flextable() |>
@@ -40,7 +40,7 @@ table3s_list[["{{ species_code }}"]] |>
4040

4141
\newpage
4242

43-
```{r echo=FALSE,tab.cap='Summary by survey district (NMFS area), survey subdistrict, and depth intervals of {{year}} {{region}} survey trawl effort (number of hauls), number of hauls containing members of the {{spp_name_informal_low}}, and their mean CPUE and biomass estimates.', tab.id=paste0("table2-","{{species_code}}"), tab.cap.style = "Table caption",tab.align="left"}
43+
```{r echo=FALSE,tab.cap='Summary by survey district (NMFS area), survey subdistrict, and depth intervals of {{year}} {{SRVY}} survey trawl effort (number of hauls), number of hauls containing members of the {{spp_name_informal_low}}, and their mean CPUE and biomass estimates.', tab.id=paste0("table2-","{{species_code}}"), tab.cap.style = "Table caption",tab.align="left"}
4444
4545
table4s_list[["{{ species_code }}"]] |>
4646
# table4s_list[[as.character("NRSSRS")]] %>%
@@ -64,13 +64,13 @@ table4s_list[["{{ species_code }}"]] |>
6464
flextable::compose(part = "header", i = 1, j = 6, value = as_paragraph("CPUE\n(kg/km", as_sup("2"), ")"))
6565
```
6666

67-
```{r echo=FALSE,fig.fullwidth=TRUE,dpi=300,fig.cap='Time series of biomass, prevalence in survey hauls, and percent change in biomass of {{spp_name_informal}} in the {{region}} bottom trawl survey from {{species_start_yr}} to {{maxyr}}. The dashed horizontal line indicates the long term average.', fig.id=paste0("threepanel-","{{species_code}}"), fig.width=6.5,fig.height=2, tab.cap.style = "Figure Caption"}
67+
```{r echo=FALSE,fig.fullwidth=TRUE,dpi=300,fig.cap='Time series of biomass, prevalence in survey hauls, and percent change in biomass of {{spp_name_informal}} in the {{SRVY}} bottom trawl survey from {{species_start_yr}} to {{maxyr}}. The dashed horizontal line indicates the long term average.', fig.id=paste0("threepanel-","{{species_code}}"), fig.width=6.5,fig.height=2, tab.cap.style = "Figure Caption"}
6868
list_3panel_ts[["{{species_code}}"]]
6969
```
7070

7171
<!---BLOCK_LANDSCAPE_START--->
7272

73-
```{r echo=FALSE,fig.cap='Catch per unit effort (CPUE, kg/ha; X = no catch) of the {{spp_name_informal_low}} in the {{year}} {{region}} RACE GAP summer bottom trawl survey. Strata are shaded by their maximum depth (darker colors = deeper).', fig.id=paste0("cpue-","{{species_code}}"), tab.cap.style = "Figure Caption",fig.width=10,fig.height = 5.5, dpi=300}
73+
```{r echo=FALSE,fig.cap='Catch per unit effort (CPUE, kg/ha; X = no catch) of the {{spp_name_informal_low}} in the {{year}} {{SRVY}} summer bottom trawl survey. Strata are shaded by their maximum depth (darker colors = deeper).', fig.id=paste0("cpue-","{{species_code}}"), tab.cap.style = "Figure Caption",fig.width=10,fig.height = 5.5, dpi=300}
7474
list_cpue_bubbles_strata[["{{species_code}}"]]
7575
```
7676

markdown/InvertebrateResultTemplate.Rmd

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
\newpage
14-
```{r echo=FALSE,tab.cap='Summary by survey districts and depth intervals of {{year}} {{region}} trawl effort (number of trawl hauls), number of hauls containing {{spp_name_informal}}, their mean CPUE and biomass estimates, and average individual weight.', tab.id=paste0("table1-",{{species_code}}), tab.cap.style = "Table caption",tab.align="left"}
14+
```{r echo=FALSE,tab.cap='Summary by survey districts and depth intervals of {{year}} {{SRVY}} trawl effort (number of trawl hauls), number of hauls containing {{spp_name_informal}}, their mean CPUE and biomass estimates, and average individual weight.', tab.id=paste0("table1-",{{species_code}}), tab.cap.style = "Table caption",tab.align="left"}
1515
table3s_list[[as.character({{ species_code }})]] |>
1616
# table3s_list[[as.character(78403)]] |>
1717
flextable() |>
@@ -38,7 +38,7 @@ table3s_list[[as.character({{ species_code }})]] |>
3838

3939

4040
\newpage
41-
```{r echo=FALSE,tab.cap='Summary by survey district (NMFS area), survey subdistrict, and depth intervals of {{year}} {{region}} survey trawl effort (number of hauls), number of hauls containing {{spp_name_informal}}, and their mean CPUE and biomass estimates.', tab.id=paste0("table2-",{{species_code}}), tab.cap.style = "Table caption",tab.align="left"}
41+
```{r echo=FALSE,tab.cap='Summary by survey district (NMFS area), survey subdistrict, and depth intervals of {{year}} {{SRVY}} survey trawl effort (number of hauls), number of hauls containing {{spp_name_informal}}, and their mean CPUE and biomass estimates.', tab.id=paste0("table2-",{{species_code}}), tab.cap.style = "Table caption",tab.align="left"}
4242
4343
table4s_list[[as.character({{species_code}})]] |>
4444
#table4s_list[[as.character({{78403}})]] |>
@@ -54,20 +54,21 @@ table4s_list[[as.character({{species_code}})]] |>
5454
flextable::padding(padding = 1, part = "all") |>
5555
flextable::padding(padding.left = 4, padding.right = 4, part = "all") |>
5656
flextable::set_table_properties(layout = "autofit") |>
57-
flextable::set_header_labels(`Total haul count` = "Total \n haul count",
57+
flextable::set_header_labels(`Area name` = "NMFS area",
58+
`Total haul count` = "Total \n haul count",
5859
`Hauls with positive catch` = "Hauls w/\npositive catch",
5960
`Percent hauls with positive catch` = "% \npositive \ntows",
6061
`CPUE (kg/km2)` = "CPUE\n(kg/km2)",
6162
`Biomass (t)` = "Biomass\n(t)") |>
6263
flextable::compose(part = "header", i = 1, j = 6, value = as_paragraph("CPUE\n(kg/km", as_sup("2"), ")"))
6364
```
6465

65-
```{r echo=FALSE,fig.fullwidth=TRUE,dpi=300,fig.cap='Time series of biomass, prevalence in survey hauls, and percent change in biomass of {{spp_name_informal}} in the {{region}} bottom trawl survey from {{species_start_yr}} to {{maxyr}}. The dashed horizontal line indicates the long term average.', fig.id=paste0("threepanel-","{{species_code}}"), fig.width=6.5,fig.height=2, tab.cap.style = "Figure Caption"}
66+
```{r echo=FALSE,fig.fullwidth=TRUE,dpi=300,fig.cap='Time series of biomass, prevalence in survey hauls, and percent change in biomass of {{spp_name_informal}} in the {{SRVY}} bottom trawl survey from {{species_start_yr}} to {{maxyr}}. The dashed horizontal line indicates the long term average.', fig.id=paste0("threepanel-","{{species_code}}"), fig.width=6.5,fig.height=2, tab.cap.style = "Figure Caption"}
6667
list_3panel_ts[["{{species_code}}"]]
6768
```
6869

6970
<!---BLOCK_LANDSCAPE_START--->
70-
```{r echo=FALSE,fig.cap='Catch per unit effort (CPUE, kg/ha; X = no catch) of {{spp_name_informal}} in the {{year}} {{region}} RACE GAP summer bottom trawl survey catches.', fig.id=paste0("cpue-",{{species_code}}), tab.cap.style = "Figure Caption",fig.width=10,fig.height = 5, dpi=300}
71+
```{r echo=FALSE,fig.cap='Catch per unit effort (CPUE, kg/ha; X = no catch) of {{spp_name_informal}} in the {{year}} {{SRVY}} summer bottom trawl survey catches.', fig.id=paste0("cpue-",{{species_code}}), tab.cap.style = "Figure Caption",fig.width=10,fig.height = 5, dpi=300}
7172
list_cpue_bubbles_strata[[as.character({{species_code}})]]
7273
```
7374
<!---BLOCK_LANDSCAPE_STOP--->

0 commit comments

Comments
 (0)