Skip to content

Commit

Permalink
Rearrange content per meeting result.
Browse files Browse the repository at this point in the history
Change headings per meeting result.
  • Loading branch information
grosscol committed May 19, 2020
1 parent 6825744 commit f41f466
Showing 1 changed file with 51 additions and 46 deletions.
97 changes: 51 additions & 46 deletions report.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ knit_hooks$set(document = function(x) {sub('\\usepackage[]{color}', '\\usepackag
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{minipage}[t][0.07\textheight][t]{\textwidth}
\centering
\Huge MICCA Quarterly Report for \Sexpr{RECIP} Jan - Apr 2020
\Large MICCA Quarterly Report for \Sexpr{RECIP} Jan - Apr 2020
\end{minipage}

\nointerlineskip
Expand Down Expand Up @@ -107,7 +107,7 @@ knit_hooks$set(document = function(x) {sub('\\usepackage[]{color}', '\\usepackag
\parbox{\textwidth}{ {\tiny \Sexpr{info7F5D31}} \par }
\centering
Payer Proportion of Deliveries
<< p1-top-right, include=TRUE, fig.show='hold', fig.width=4, fig.height=2.9, dev='pdf' >>=
<< p1-top-right, include=TRUE, fig.show='hold', fig.width=4, fig.height=2.7, dev='pdf' >>=
fig7F5D31
@
\vfill
Expand Down Expand Up @@ -154,38 +154,34 @@ knit_hooks$set(document = function(x) {sub('\\usepackage[]{color}', '\\usepackag
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PAGE 1: BOTTOM %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% SUBTITLE Spanning entire page
\begin{minipage}[t][0.02\textheight][t]{\textwidth}
\centering
\textbf{Preference Provision}
\end{minipage}

\nointerlineskip
\begin{minipage}[t][0.26\textheight][t]{0.5\textwidth}
\begin{minipage}[t][0.30\textheight][t]{0.5\textwidth}
\strut\vspace*{-\baselineskip}\newline
\parbox{\textwidth}{ {\tiny \Sexpr{infoBDBC81}} \par }
\centering
Provision of Preference Rate\\
\vspace{2mm}
<< dbg1, include=TRUE, fig.show='hold', fig.width=2.5, fig.height=2.5, dev='pdf' >>=
figBDBC81
@
\parbox{\textwidth}{ {\tiny \Sexpr{info82C4A3}} \par }
\parbox{\textwidth}{\centering Contraception Choice}
\centering{
<< p2-mid-left, include=TRUE, message=FALSE, echo=FALSE>>=
# DON"T INCLUDE A CAPTION. It will bork the environment
knitr::kable(tbl82C4A3, format.args = list(digits=3), align='c',
booktabs=T, format="latex") %>%
kable_styling(font_size = 14) %>%
row_spec(0, bold=T)

@
}
\vfill
\makebox[\linewidth]{}
\end{minipage}\hfill
\begin{minipage}[t][0.26\textheight][t]{0.5\textwidth}
\begin{minipage}[t][0.30\textheight][t]{0.5\textwidth}
\strut\vspace*{-\baselineskip}\newline
\parbox{\textwidth}{ {\tiny \Sexpr{infoE8F578}} \par }
Provision of Preference Counts\\
\parbox{\textwidth}{ {\tiny \Sexpr{info1903AB}} \par }
\centering
<< dbg2, include=TRUE, fig.show='hold', fig.width=4, fig.height=3, dev='pdf' >>=
figE8F578
@
Contraception Choice by Insurance Type
<< p2-mid-right, include=TRUE, fig.show='hold', fig.width=4, fig.height=3, dev='pdf' >>=
fig1903AB
@
\vfill
\makebox[\linewidth]{}
\end{minipage}


%% PAGE BREAK %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\FloatBarrier
Expand All @@ -194,46 +190,55 @@ knit_hooks$set(document = function(x) {sub('\\usepackage[]{color}', '\\usepackag
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PAGE 2: TOP %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% SUBTITLE Spanning entire page
\begin{minipage}[t][0.02\textheight][t]{\textwidth}
\centering
\textbf{Preferred Method Provided}
\end{minipage}

\begin{minipage}[t][0.30\textheight][t]{0.5\textwidth}
\nointerlineskip
\begin{minipage}[t][0.3\textheight][t]{0.5\textwidth}
\strut\vspace*{-\baselineskip}\newline
\parbox{\textwidth}{ {\tiny \Sexpr{info82C4A3}} \par }
\parbox{\textwidth}{\centering Long Acting Contraceptive Preference}
\centering{
<< p2-mid-left, include=TRUE, message=FALSE, echo=FALSE>>=
# DON"T INCLUDE A CAPTION. It will bork the environment
knitr::kable(tbl82C4A3, format.args = list(digits=3), align='c',
booktabs=T, format="latex") %>%
kable_styling(font_size = 14) %>%
row_spec(0, bold=T)

@
}
\parbox{\textwidth}{ {\tiny \Sexpr{infoBDBC81}} \par }
\centering
Women who had a live birth and recieve their preferred contraceptive\\
\vspace{2mm}
<< dbg1, include=TRUE, fig.show='hold', fig.width=2.5, fig.height=2.5, dev='pdf' >>=
figBDBC81
@
\vfill
\makebox[\linewidth]{}
\end{minipage}\hfill
\begin{minipage}[t][0.30\textheight][t]{0.5\textwidth}
\begin{minipage}[t][0.3\textheight][t]{0.5\textwidth}
\strut\vspace*{-\baselineskip}\newline
\parbox{\textwidth}{ {\tiny \Sexpr{info1903AB}} \par }
\parbox{\textwidth}{ {\tiny \Sexpr{infoE8F578}} \par }
Proportion of contraception preferred and provided\\
\centering
Preference of Women with Documented Choice
<< p2-mid-right, include=TRUE, fig.show='hold', fig.width=4, fig.height=3, dev='pdf' >>=
fig1903AB
@
<< dbg2, include=TRUE, fig.show='hold', fig.width=4, fig.height=2.8, dev='pdf' >>=
figE8F578
@
\vfill
\makebox[\linewidth]{}
\end{minipage}


\smallskip
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% PAGE 2: MIDDLE %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tcolorbox}[breakable,colback=white,colframe=black,width=\dimexpr\textwidth\relax]

%% SUBTITLE Spanning entire page
\begin{minipage}[t][0.02\textheight][t]{\textwidth}
\centering
\textbf{Immediate Postpartum Contraception: Provision in 0-3 Days}
\end{minipage}

\begin{minipage}[t][0.29\textheight][t]{0.5\textwidth}
\strut\vspace*{-\baselineskip}\newline
\parbox{\textwidth}{ {\tiny \Sexpr{infoADA835A}} \par }
\centering
Overall Immediate PP Contraception Rate\\
Overall Rate\\
<< p1-mid-left, include=TRUE, fig.show='hold', fig.width=2.5, fig.height=2.5, dev='pdf' >>=
figADA835A
@
Expand All @@ -244,7 +249,7 @@ knit_hooks$set(document = function(x) {sub('\\usepackage[]{color}', '\\usepackag
\strut\vspace*{-\baselineskip}\newline
\parbox{\textwidth}{ {\tiny \Sexpr{info707A6E}} \par }
\centering
Immediate PP Contraception Rate by Month
Monthly Rate\\
<< p1-mid-right, include=TRUE, fig.show='hold', fig.width=4, fig.height=3, dev='pdf' >>=
fig707A6E
@
Expand Down

0 comments on commit f41f466

Please sign in to comment.