-
Notifications
You must be signed in to change notification settings - Fork 0
/
TCMN_Full_PDF_Local.Rnw
492 lines (452 loc) · 19.2 KB
/
TCMN_Full_PDF_Local.Rnw
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Template TCMN data sheet version 3
%
% Alberto Sanchez [email protected] Dec 2015
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
%%%%%%%%%%%%%% package declaration %%%%%%%%%%%%%%%%%%%%%
\usepackage[top=0.3in, bottom=0.1in, left=0.5in, right=0.6in]{geometry}
\usepackage{graphicx} % to load images
\usepackage[export]{adjustbox} % add alignment to includegraphics
\usepackage[font=small]{caption}
\usepackage{xcolor} % color text
\usepackage{tabularx} % to adjust table width, etc.
\usepackage{titlesec} % format titles and headers
\usepackage{sectsty} % format sections & subsections
\usepackage{booktabs} % For \toprule, \midrule and \bottomrule
\usepackage[colorlinks = true,
linkcolor = blue,
urlcolor = blue,
citecolor = blue,
anchorcolor = blue]{hyperref} % to include hyperlinks in the doc
\sectionfont{\fontsize{16}{15}\selectfont\raggedright} % formats title newsletter (section)
\subsectionfont{\fontsize{14}{12}\selectfont\raggedright} % formats title newsletter (section)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BEGIN DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
<<setup,echo=FALSE,message=FALSE,cache=FALSE>>=
#library(knitr)
# Global chunk options: Cache chunks which source R code
read_chunk("TCMN_charts_PDF.R")
#opts_chunk$set(cache=TRUE,autodep=TRUE)
@
%
<<params,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE>>=
#source("/Users/asanchez3/Desktop/Work/TCMN/ReportGenerators/generic_functions.R")
#c <- "Spain"
thisYear <- substr(Sys.Date(),1,4)
couName <- countryNames[countryNames$Country==c,]$Country
couISO2 <- countries[countries$Country==couName,]$CountryCodeISO2
expYear <- .getExportsPeriod(couName)
impYear <- .getImportsPeriod(couName)
couISO3 <- countries[countries$Country==couName,]$CountryCodeISO3
ES_year <- filter(TCMN_data, CountryCode==couISO3 & Subsection=="table3")$Period[1]
#thisYear <- "2015"
@
%%%%%%%%%%%%%%%% PAGE 1 %%%%%%%%%%%%%%%%%%%
%World Bank logo and TCMN branding
\begin{figure}
\vspace{-3ex} % move up this figure
\hspace{-7ex} % move left this figure
\includegraphics[width=5cm]{/Users/asanchez3/shinyTCMN/www/wb_logo_background.png}
\end{figure}
\begin{figure}
\begin{minipage}[t]{0.99\textwidth} % top section
\vspace{-30ex}
\hspace{-2ex}
\raggedright{\includegraphics[width=5.5cm,right]{/Users/asanchez3/shinyTCMN/www/TC_snapshots_data.png}}
% {\color{white!70!black}\noindent\makebox[\linewidth]{\rule{20cm}{0.3pt}}} % horiz line
\end{minipage}
\end{figure}
%
%%%% Macro Indicators
\begin{minipage}[t]{0.99\textwidth} % top section
\vspace{-1.5cm}
\begin{minipage}[c]{0.36\textwidth}
\begin{minipage}[c]{0.28\textwidth} % flag
\includegraphics[width=1.2cm,height=1.2cm]{/Users/asanchez3/shinyTCMN/www/\Sexpr{couISO2}.png}
\end{minipage}
\begin{minipage}[c]{0.70\textwidth} % Country name
\section*{\color{blue!40!black}\Sexpr{couName}}
\end{minipage}
\end{minipage}
\begin{minipage}[c]{0.63\textwidth} % key macro table
% Table 1
\centering
\resizebox{\textwidth}{!}{
<<macroInd,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
#macroInd(couName)
@
}
\end{minipage}
\end{minipage} % end top section
\begin{minipage}[b]{0.99\textwidth} % macro indicators main table
%\vspace*{0.5cm}
%\vspace{+3ex}
\begin{minipage}[t]{0.99\textwidth}
\begin{minipage}[c]{0.875\textwidth}
\begin{flushleft}
{\color{white!30!blue} \textbf{\small Macro Indicators}}
\end{flushleft}
\vspace*{-0.4cm}
% Table 2
\centering
\resizebox{\textwidth}{!}{
<<macroInd_Big_macro,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
}
\end{minipage}
\begin{minipage}[c]{0.11\textwidth}
\vspace*{+0.8cm}
<<createSparklines_macro,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=5,fig.width=4,results="asis">>=
@
\vspace*{-0.5cm}
\end{minipage}
%\vspace*{-0.4cm}
\begin{minipage}[c]{0.875\textwidth}
\begin{flushleft}
{\color{white!30!blue} \textbf{\small Investment indicators}}
\end{flushleft}
\vspace*{-0.4cm}
% Table 2
\centering
\resizebox{\textwidth}{!}{
<<macroInd_Big_invest,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
}
\end{minipage}
\begin{minipage}[c]{0.11\textwidth}
\vspace*{+0.8cm}
<<createSparklines_invest,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=4,fig.width=4,results="asis">>=
@
\vspace*{-0.5cm}
\end{minipage}
%\vspace*{-0.4cm}
\begin{minipage}[c]{0.875\textwidth}
\begin{flushleft}
{\color{white!30!blue} \textbf{\small Trade Indicators}}
\end{flushleft}
\vspace*{-0.4cm}
% Table 2
\centering
\resizebox{\textwidth}{!}{
<<macroInd_Big_trade,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
}
\end{minipage}
\begin{minipage}[c]{0.11\textwidth}
\vspace*{+0.8cm}
<<createSparklines_trade,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=4.5,fig.width=4.5,results="asis">>=
@
\vspace*{-0.4cm}
\end{minipage}
\\[3pt]
\raggedright{\footnotesize{\href{http://www.worldbank.org/en/topic/macroeconomics/overview}{Sources: MFM note}{,} \href{http://data.worldbank.org/data-catalog/world-development indicators}{[1] World Development Indicators (WDI)}{,} \href{http://unctadstat.unctad.org/wds/ReportFolders/reportFolders.aspx}{[2] UNCTADSTAT}{,} \href{https://www.imf.org/external/pubs/ft/weo/2015/02/weodata/index.aspx}{[3] World Economic Outlook (WEO)}}}
\end{minipage}
%\end{minipage}
\begin{minipage}[b]{\textwidth} % macro charts
\vspace{+3ex}
\begin{minipage}[c]{0.49\textwidth} % imports/exports
\center{\color{blue!50!black} \textbf{\small Goods Export and Import \\ volume growth, 2012-2015}}
<<ExpImp_HF,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=3.3,fig.width=10,results="asis">>=
@
\vspace*{-0.3cm}
%\hspace*{0.5cm}
\raggedright{\footnotesize{\href{http://web.worldbank.org/WBSITE/EXTERNAL/EXTDEC/EXTDECPROSPECTS/0,,menuPK:476941~pagePK:51084723~piPK:51084722~theSitePK:476883,00.html}{Source: Development Prospects Group (DECPG)}}}
\end{minipage}
\begin{minipage}[c]{0.49\textwidth} % gdp value added
\center{\color{blue!50!black} \textbf{\small Gross Value Added by \\ Economic Activity 2013 \footnotesize(\% GDP)}}
<<GVA_Treemap,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=3,fig.width=10,results="asis">>=
@
%\vspace*{-0.3cm}
%\hspace*{0.5cm}
\raggedright{\footnotesize{\href{http://data.worldbank.org/data-catalog/world-development indicators}{Source: World Development Indicators (WDI)}}}
\end{minipage}
\end{minipage}
\end{minipage}
%%%% Exports Imports and DB
\begin{minipage}[b]{0.99\textwidth}
\vspace{0.8cm}
\begin{minipage}[c]{0.44\textwidth}
%\vspace*{-0.2cm}
\begin{minipage}[t]{0.99\textwidth}
{\color{blue!50!black} \textbf{\small Top 5 Exports by \% of Total Value, \Sexpr{expYear}}}
%\vspace{3ex}
\\[6pt]
\centering
\resizebox{\textwidth}{!}{%
<<ImpExp_Treemap-2,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=3,fig.width=11,results="asis">>=
@
}
\end{minipage}
\\[14pt]
\begin{minipage}[t]{0.99\textwidth}
{\color{blue!50!black} \textbf{\small Imports Categories by \% of Total Value, \Sexpr{impYear}}}
\\[6pt]
\centering
\resizebox{\textwidth}{!}{%
<<ImpExp_Treemap-1,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=2.5,fig.width=11,results="asis">>=
@
}
\end{minipage}
\\[10pt]
%\hspace*{0.5cm}
\footnotesize{\href{http://wits.worldbank.org}{Source: World Integrated Trade Solution (WITS)}}
\end{minipage}
\begin{minipage}[c]{0.56\textwidth} % Doing Business table
%\vspace*{-0.1cm}
%\begin{flushleft}
\center {\color{blue!50!black}\textbf{\small Doing Business 2015 \\ \footnotesize Distance to Frontier (DTF) and Rank}}
%\end{flushleft}
\\[18pt]
\centering
\resizebox{\textwidth}{!}{%
<<PolicyTable,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
}
\\[15pt]
%\hspace*{0.5cm}
\raggedright{\footnotesize{\href{http://www.doingbusiness.org/data}{Source: Doing Busines Report 2015}}}
\end{minipage}
\end{minipage}
% \vspace{+3ex}
% {\color{blue!50!white}\noindent\makebox[\linewidth]{\rule{18cm}{0.3pt}}} % horiz line
% \begin{minipage}[c]{0.99\textwidth}
% \hspace*{-0.4cm}\raggedleft{\color{white!40!black} \footnotesize TRADE AND COMPETITIVENESS MONITORING NOTE - UPDATED}
% %\Sexpr{month} \Sexpr{year}}
% \end{minipage}
\newpage
%%%%%%%%%%%%%%%% PAGE 2 %%%%%%%%%%%%%%%%%%%
\begin{minipage}[t]{0.99\textwidth}
\vspace{0.5cm}
\begin{minipage}[c]{0.48\textwidth} % WEF Radar
\center{\color{blue!50!black} \textbf{WEF Competitiveness Indicators \\ \footnotesize(Scale 1-7, 7=best)}}
\vspace*{-0.6cm}
<<WEFradar,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=5.5,fig.width=7.5,results="asis">>=
@
\vspace*{-0.6cm}
\hspace*{0.3cm} \raggedright\footnotesize{\href{http://www.weforum.org/global-competitiveness-report-2015-2016}{Source: WEF Global Competitiveness Report 2015}}
\end{minipage}
\begin{minipage}[c]{0.50\textwidth} % LPI chart
%\vspace*{0.5cm}
\center {\color{blue!50!black} \textbf{Logistics Performance Index \\ \footnotesize(Scale 1-5, 5=best)}}
\vspace*{0.4cm}
<<LPIindicators,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=4.5,fig.width=9,results="asis">>=
@
%\hspace*{0.5cm}
\raggedright\footnotesize{\href{http://lpi.worldbank.org}{Source: Logistics Performance Index (World Bank)}}
\end{minipage}
\end{minipage}
\begin{minipage}[b]{0.99\textwidth}
\begin{minipage}[c]{0.50\textwidth} % WGI chart
\vspace*{0.8cm}
\center {\color{blue!50!black} \textbf{World Governance indicators \\ \footnotesize(Std. score, High=best)}}
\vspace*{0.3cm}
<<WGIindicators,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=4.4,fig.width=8,results="asis">>=
@
\vspace*{-0.6cm}
\hspace*{0.3cm} \raggedright\footnotesize{\href{http://data.worldbank.org/data-catalog/worldwide-governance-indicators}{Source: Worldwide Governance Indicators}}
\end{minipage}
\begin{minipage}[c]{0.48\textwidth} % Trade Policy table
\vspace*{0.4cm}
%\begin{flushleft}
{\color{blue!50!black} \textbf{Trade Policy}}
%\end{flushleft}
%\vspace*{0.2cm}
\\[20pt]
\centering
\resizebox{\textwidth}{!}{%
<<PolicyFacilTable,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
}
\\[20pt]
%\hspace*{0.5cm}
\raggedright{\footnotesize{\href{http://wits.worldbank.org}{Sources: WITS}{, }\href{http://stat.wto.org/CountryProfile/WSDBCountryPFHome.aspx?Language=E}{[1] WTO Trade Profiles}}}
\end{minipage}
\end{minipage}
\vspace{+8ex}
%\hspace*{0.2cm}\subsection*{\color{white!50!black}Private Sector's Views}
\hspace*{0.1cm} \raggedright{\color{white!50!black}\Large Private Sector View}
\vspace*{-0.2cm}
{\color{white!30!black}\noindent\makebox[\linewidth]{\rule{18cm}{0.2pt}}} % horiz line
\begin{minipage}[b]{0.99\textwidth}
\vspace*{+0.6cm}
\begin{minipage}[c]{0.02\textwidth}
\hspace*{+0.1cm}
\end{minipage}
\begin{minipage}[c]{0.97\textwidth}
\begin{flushleft}
{\color{blue!50!black} \textbf{Enterprise Survey \Sexpr{ES_year}}}
\end{flushleft}
\vspace*{-0.4cm}
\centering
\resizebox{\textwidth}{!}{%
<<ESTable,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
}
\\[8pt]
%\hspace*{0.3cm}
\raggedright{\footnotesize{\href{https://www.enterprisesurveys.org/data}{Source: Enterprise Survey \Sexpr{ES_year}}}}
\end{minipage}
\begin{minipage}[b]{0.99\textwidth}
\vspace{+4ex}
\begin{minipage}[c]{0.49\textwidth} % top 5 constraints ES
\center{\color{blue!50!black} \textbf{Top 5 constraints according to ES \Sexpr{ES_year} \\ \footnotesize(\% respondants)}}
<<top5constraintsES,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=2.8,fig.width=9,results="asis">>=
@
%\vspace*{-0.7cm}
\hspace*{0.3cm} \raggedright\footnotesize{\href{https://www.enterprisesurveys.org/data}{Source: Enterprise Survey \Sexpr{ES_year}}}
\end{minipage}
\begin{minipage}[c]{0.49\textwidth} % top 5 constraints WEF
\center{\color{blue!50!black} \textbf{Top 5 constraints according to WEF 2015 survey \\ \footnotesize(\% respondants among 88 executives)}}
<<top5constraintsWEF,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',fig.height=2.8,fig.width=9,results="asis">>=
@
%\vspace*{-0.7cm}
\hspace*{0.3cm} \raggedright\footnotesize{\href{http://www.weforum.org/reports/global-competitiveness-report-2015-2016}{Source: WEF Global Competitiveness Report 2015}}
\end{minipage}
\end{minipage}
\end{minipage}
% \vspace{+8ex}
% {\color{blue!50!white}\noindent\makebox[\linewidth]{\rule{18cm}{0.3pt}}} % horiz line
% \vspace{+2ex}
% \begin{minipage}[c]{0.33\textwidth}
% \hspace*{+0.3cm} \includegraphics[width=4cm,left]{/Users/asanchez3/shinyTCMN/www/wb_logo.jpg}
% %\hspace*{+0.3cm} \includegraphics[width=4cm,left]{/Users/asanchez3/shinyTCMN/www/wb_logo.png}
% \end{minipage}
% \begin{minipage}[c]{0.65\textwidth}
% \vspace*{-0.4cm}
% \raggedleft{\color{white!40!black} \footnotesize TRADE AND COMPETITIVENESS MONITORING NOTE - UPDATED}
% %\Sexpr{month} \Sexpr{year}}
% \end{minipage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%% Operations section %%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
%%%%%%%%%%%%%%%% PAGE 3 %%%%%%%%%%%%%%%%%%%
<<setup2,echo=FALSE,message=FALSE,cache=FALSE>>=
#library(knitr)
# Global chunk options: Cache chunks which source R code
read_chunk("TCMN_portfolio_PDF.R")
#opts_chunk$set(cache=TRUE,autodep=TRUE)
@
%World Bank logo and TCMN branding
\begin{figure}
\vspace{-3ex} % move up this figure
\hspace{-7ex} % move left this figure
\includegraphics[width=5cm]{/Users/asanchez3/shinyTCMN/www/wb_logo_background.png}
\end{figure}
\begin{figure}
\begin{minipage}[t]{0.99\textwidth} % top section
\vspace{-30ex}
\hspace{-2ex}
\raggedright{\includegraphics[width=5.5cm,right]{/Users/asanchez3/shinyTCMN/www/TC_snapshots_operations.png}}
\end{minipage}
\end{figure}
%
%%%% Macro Indicators
\begin{minipage}[t]{0.99\textwidth} % top section
\vspace{-1.5cm}
\begin{minipage}[c]{0.36\textwidth}
\begin{minipage}[c]{0.28\textwidth} % flag
\includegraphics[width=1.2cm,height=1.2cm]{/Users/asanchez3/shinyTCMN/www/\Sexpr{couISO2}.png}
\end{minipage}
\begin{minipage}[c]{0.70\textwidth} % Country name
\section*{\color{blue!40!black}\Sexpr{couName}}
\end{minipage}
\end{minipage}
\begin{minipage}[c]{0.63\textwidth}
% \begin{flushleft}
% \center{\color{blue!20!black} \textbf{\Large T\&C Product Line Operations Board Approved On or After FY14}}
% \end{flushleft}
\end{minipage}
\end{minipage} % end top section
%\begin{minipage}[b]{0.99\textwidth} % main body
\raggedright{\color{white!30!blue} \textbf{\Large SCD/CPF}}
\begin{minipage}[c]{0.99\textwidth}
\vspace*{0.2cm}
\raggedright{\color{white!30!blue} \textbf{\large Most Recent}}
\vspace*{0.3cm}
<<mostRecentDocs,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
\vspace*{0.5cm}
\end{minipage}
\begin{minipage}[c]{0.99\textwidth} % imports/exports
\vspace*{0.2cm}
\raggedright{\color{white!30!blue} \textbf{\large Planned}}
\vspace*{0.3cm}
<<plannedDocs,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
\vspace*{0.5cm}
\end{minipage}
%\end{minipage}
\vspace*{0.5cm}
\raggedright{\color{white!30!blue} \textbf{\Large WB Lending Pipeline}}
\begin{minipage}[b]{0.99\textwidth} % overview tables
\begin{minipage}[c]{0.99\textwidth}
\vspace*{0.5cm}
<<lendingPipeline,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
\vspace*{0.5cm}
\end{minipage}
\raggedright{\color{white!30!blue} \textbf{\Large WB Portfolio}}
\begin{minipage}[c]{0.99\textwidth} % imports/exports
\vspace*{0.2cm}
\raggedright{\color{white!30!blue} \textbf{\large Active}}
\vspace*{0.3cm}
<<portfolioActive,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
\vspace*{0.5cm}
\end{minipage}
\begin{minipage}[c]{0.99\textwidth} % imports/exports
\raggedright{\color{white!30!blue} \textbf{\large Closed}}
\vspace*{0.5cm}
<<portfolioClosed,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
\vspace*{0.5cm}
\end{minipage}
\end{minipage}
\newpage
%%%%%%%%%%%%%%%% PAGE 2 %%%%%%%%%%%%%%%%%%%
\begin{minipage}[t]{0.99\textwidth}
\raggedright{\color{white!30!blue} \textbf{\Large WB ASA}}
\begin{minipage}[b]{0.99\textwidth}
\vspace*{0.2cm}
\raggedright{\color{white!30!blue} \textbf{\large Active}}
\vspace*{0.3cm}
<<ASAActive,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
\vspace*{0.2cm}
\end{minipage}
\begin{minipage}[b]{0.99\textwidth}
\vspace*{0.2cm}
\raggedright{\color{white!30!blue} \textbf{\large Closed}}
\vspace*{0.3cm}
<<ASAClosed,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
\vspace*{0.5cm}
\end{minipage}
\raggedright{\color{white!30!blue} \textbf{\Large IFC ASA}}
\begin{minipage}[b]{0.99\textwidth}
\vspace*{0.2cm}
\raggedright{\color{white!30!blue} \textbf{\large Active}}
\vspace*{0.3cm}
<<ASA_IFCActive,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
\vspace*{0.2cm}
\end{minipage}
\raggedright{\color{white!30!blue} \textbf{\large Pipeline}}
\vspace*{0.3cm}
<<ASA_IFCPipeline,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
\vspace*{0.2cm}
\end{minipage}
\begin{minipage}[b]{0.99\textwidth}
\raggedright{\color{white!30!blue} \textbf{\large Closed}}
\vspace*{0.3cm}
<<ASA_IFCClosed,echo=FALSE,message=FALSE,cache=FALSE,warning=FALSE,fig.align='center',results="asis">>=
@
\vspace*{0.2cm}
\end{minipage}
%%%%%%%%%%%%%%%% END OF DOCUMENT %%%%%%%%%%%%%%%%%%%
\end{document}