-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path9_9_Appendices.rmd
49 lines (38 loc) · 1.66 KB
/
9_9_Appendices.rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
title: ""
author: ""
date: ""
output:
pdf_document:
keep_tex: yes
includes:
in_header: header.tex
---
<!-- ************************************************************************************************-->
<!-- **********************************BEGIN APPENDICES**********************************************-->
<!-- ************************************************************************************************-->
\FloatBarrier
\newpage
<!-- ************************************DATA FILE(S)************************************************-->
#Appendix A. Detailed fits to length composition data {-}
\renewcommand{\thepage}{A-\arabic{page}}
\renewcommand{\thefigure}{A\arabic{figure}}
\setcounter{page}{1}
<!-- Length Composition (LenComp) r4ss plots ------------------------------- -->
```{r, results='asis'}
##subset to just the plots of length comp fits
len_plots = LenComp_mod1[grep("lenfit_flt",LenComp_mod1$file),]
# Plot all of the length comp plots
for(i in 1:dim(len_plots)[1]) { # was previously 1:10 but caused error due to no 10th figure
# find matches to multi-page plots
page_test = sapply(multi_page_fig, grepl, len_plots$label[i])
# if the plot is page2+ of a series, add the extra caption
if(TRUE %in% page_test) {
cat('\n', sep='')
cat('\\begin{center} \n
Figure continued from previous page \n
\\end{center}',sep='')
} else {
cat('\n![', len_plots[i,caption_col], ' \\label{fig:mod1_', i, '_', len_plots[i, label_col], '}](', len_plots[i, path_col], ')\n', sep='')
} }
```