|
| 1 | +--- |
| 2 | +title: "R Consortium R Submission Pilot 5 - Summary Tables and Figures" |
| 3 | +author: "Pilot5 Team" |
| 4 | +date: "`r Sys.Date()`" |
| 5 | +format: |
| 6 | + pdf: |
| 7 | + latex-engine: xelatex |
| 8 | + geometry: "margin=0.25in" |
| 9 | + header-includes: |
| 10 | + - \usepackage{pdfpages} |
| 11 | + - \usepackage{graphicx} |
| 12 | +geometry: "margin=0.25in" |
| 13 | +header-includes: |
| 14 | + - \usepackage{pdfpages} |
| 15 | + - \usepackage{graphicx} |
| 16 | +--- |
| 17 | + |
| 18 | +```{r global_options, include=FALSE} |
| 19 | +knitr::opts_chunk$set(fig.width = 6, fig.height = 6) |
| 20 | +``` |
| 21 | + |
| 22 | +Note : In Pilot 5, following the same approach as Pilot1, different open-source packages were used when generating each of the 4 analysis outputs to test wider use case scenarios. The outputs were formatted differently intentionally to cover different company specific formatting choices. |
| 23 | + |
| 24 | +\newpage |
| 25 | + |
| 26 | +#### Table 14-2.01 |
| 27 | +#### Summary of Demographic and Baseline Characteristics |
| 28 | + |
| 29 | +```{r demog, echo=FALSE, message=FALSE, comment=NA} |
| 30 | +knitr::opts_chunk$set(fig.align = "center", out.width = "70%") |
| 31 | +
|
| 32 | +library(here) |
| 33 | +
|
| 34 | +source("pilot5-helper-fcns.r") |
| 35 | +path <- list( |
| 36 | + sdtm = here("pilot5-submission", "pilot5-input", "sdtmdata", "datasetjson"), |
| 37 | + adam = here("pilot5-submission", "pilot5-input", "adamdata"), |
| 38 | + output = here("pilot5-submission", "pilot5-output", "pilot5-tlfs"), |
| 39 | + adam_json = here("pilot5-submission", "pilot5-output", "pilot5-datasetjson"), |
| 40 | + programs = here("pilot5-submission", "pilot5-programs") |
| 41 | +) |
| 42 | +
|
| 43 | +source(file.path(path$programs, "tlf-demographic.r")) |
| 44 | +print(tbl) |
| 45 | +``` |
| 46 | + |
| 47 | +```{r, echo = FALSE} |
| 48 | +# You need to manually produce the pdf for the tlf-primary-pilot5.rtf |
| 49 | +# Microsoft Office or Libre Office can do this. |
| 50 | +``` |
| 51 | + |
| 52 | + |
| 53 | +\noindent\begin{minipage}[t]{\textwidth} |
| 54 | + \vspace{4ex} |
| 55 | + \begin{center} |
| 56 | + \includegraphics[scale=0.80]{cmb-report-manual-files/tlf-primary-pilot5.pdf} |
| 57 | + \end{center} |
| 58 | +\end{minipage} |
| 59 | + |
| 60 | + |
| 61 | +```{r, echo = FALSE} |
| 62 | +# You need to manually produce the pdf for the tlf-primary-pilot5.rtf |
| 63 | +# Microsoft Office or Libre Office can do this. |
| 64 | +``` |
| 65 | + |
| 66 | +\noindent\begin{minipage}[t]{\textwidth} |
| 67 | + \begin{flushleft} |
| 68 | + {\large \textbf{Table 14-3.02}}\\[1ex] |
| 69 | + {\large \textbf{Primary Endpoint Analysis: Glucose (mmol/L) - Summary at Week 20 - LOCF}} |
| 70 | + \end{flushleft} |
| 71 | + \vspace{4ex} |
| 72 | + \begin{center} |
| 73 | + \includegraphics[scale=1]{cmb-report-manual-files/tlf-efficacy-pilot5.pdf} |
| 74 | + \end{center} |
| 75 | +\end{minipage} |
| 76 | + |
| 77 | +\noindent\begin{minipage}[t]{\textwidth} |
| 78 | + \begin{flushleft} |
| 79 | + {\large \textbf{Figure 14-1}}\\[1ex] |
| 80 | + {\large \textbf{Time to Dermatologic Event by Treatment Group}} |
| 81 | + \end{flushleft} |
| 82 | + \vspace{4ex} |
| 83 | + \begin{center} |
| 84 | + \includegraphics[scale=1]{cmb-report-manual-files/tlf-kmplot-pilot5.pdf} |
| 85 | + \end{center} |
| 86 | +\end{minipage} |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
0 commit comments