-
Notifications
You must be signed in to change notification settings - Fork 9
/
computed_manuscript.tex
480 lines (403 loc) · 24.7 KB
/
computed_manuscript.tex
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
% !TeX program = pdfLaTeX
\documentclass[smallextended]{svjour3} % onecolumn (second format)
%\documentclass[twocolumn]{svjour3} % twocolumn
%
\smartqed % flush right qed marks, e.g. at end of proof
%
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[hyphens]{url} % not crucial - just used below for the URL
\usepackage{hyperref}
%
% \usepackage{mathptmx} % use Times fonts if available on your TeX system
%
% insert here the call for the packages your document requires
%\usepackage{latexsym}
% etc.
%
% please place your own definitions here and don't use \def but
% \newcommand{}{}
%
% Insert the name of "your journal" with
% \journalname{myjournal}
%
%% load any required packages here
% Pandoc syntax highlighting
\usepackage{color}
\usepackage{fancyvrb}
\newcommand{\VerbBar}{|}
\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
% Add ',fontsize=\small' for more characters per line
\usepackage{framed}
\definecolor{shadecolor}{RGB}{248,248,248}
\newenvironment{Shaded}{\begin{snugshade}}{\end{snugshade}}
\newcommand{\AlertTok}[1]{\textcolor[rgb]{0.94,0.16,0.16}{#1}}
\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}}
\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.77,0.63,0.00}{#1}}
\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}}
\newcommand{\BuiltInTok}[1]{#1}
\newcommand{\CharTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}}
\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textit{#1}}}
\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}}
\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}}
\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{#1}}}
\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{#1}}
\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}}
\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}}
\newcommand{\ErrorTok}[1]{\textcolor[rgb]{0.64,0.00,0.00}{\textbf{#1}}}
\newcommand{\ExtensionTok}[1]{#1}
\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}}
\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}}
\newcommand{\ImportTok}[1]{#1}
\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}}
\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{#1}}}
\newcommand{\NormalTok}[1]{#1}
\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.81,0.36,0.00}{\textbf{#1}}}
\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{#1}}
\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textit{#1}}}
\newcommand{\RegionMarkerTok}[1]{#1}
\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}}
\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}}
\newcommand{\StringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}}
\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}}
\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}}
\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}}
% tightlist command for lists without linebreak
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
% From pandoc table feature
\usepackage{longtable,booktabs,array}
\usepackage{calc} % for calculating minipage widths
% Correct order of tables after \paragraph or \subparagraph
\usepackage{etoolbox}
\makeatletter
\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
\makeatother
% Allow footnotes in longtable head/foot
\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
\makesavenoteenv{longtable}
% Pandoc citation processing
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newlength{\csllabelwidth}
\setlength{\csllabelwidth}{3em}
\newlength{\cslentryspacingunit} % times entry-spacing
\setlength{\cslentryspacingunit}{\parskip}
% for Pandoc 2.8 to 2.10.1
\newenvironment{cslreferences}%
{}%
{\par}
% For Pandoc 2.11+
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
{% don't indent paragraphs
\setlength{\parindent}{0pt}
% turn on hanging indent if param 1 is 1
\ifodd #1
\let\oldpar\par
\def\par{\hangindent=\cslhangindent\oldpar}
\fi
% set entry spacing
\setlength{\parskip}{#2\cslentryspacingunit}
}%
{}
\usepackage{calc}
\newcommand{\CSLBlock}[1]{#1\hfill\break}
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
\usepackage{booktabs}
\begin{document}
\title{My Example Computed Manuscript }
\subtitle{Created in Rmarkdown}
\titlerunning{Example computed manuscript}
\author{ Jeffrey M. Perkel \and }
\institute{
Jeffrey M. Perkel \at
Springer Nature, 1 New York Plaza, New York, NY \\
\email{\href{mailto:[email protected]}{\nolinkurl{[email protected]}}} % \\
% \emph{Present address:} of F. Author % if needed
\and
}
\date{Received: date / Accepted: date}
% The correct dates will be entered by the editor
\maketitle
\begin{abstract}
A mock computed manuscript created in RStudio using \{Rmarkdown\}. The \{Bookdown\} and \{Rticles\} packages were used to output the text in Springer Nature's desired manuscript format.
\\
\keywords{
}
\end{abstract}
\def\spacingset#1{\renewcommand{\baselinestretch}%
{#1}\small\normalsize} \spacingset{1}
\hypertarget{intro}{%
\section{Introduction}\label{intro}}
``Literate programming'' is a style of programming that uses computational notebooks to weave together code, explanatory text, data and results into a single document, enhancing scientific communication and computational reproducibility.\textsuperscript{1--3} (These references were added into the document using RStudio's integration with the open-source Zotero reference manager\textsuperscript{4} plus the \href{https://retorque.re/zotero-better-bibtex/}{Better BibTeX} Zotero plugin.)
Several platforms for creating such documents exist.\textsuperscript{5} Typically, these documents interleave code and text `blocks' to build a computational narrative. But some, including \href{https://rmarkdown.rstudio.com/}{R Markdown}, \href{https://www.observablehq.com}{Observable}, and the \href{https://jupyterbook.org/intro.html}{Jupyter Book} extension to the Jupyter ecosystem, also allow authors to include and execute code ``inline'' -- that is, within the text itself.
This makes it possible to create fully executable manuscripts in which the document itself computes and inserts values and figures into the text rather than requiring authors to input them manually. This is in many ways the `killer feature' of computed manuscripts: it circumvents the possibility that the author will enter an incorrect number, or forget to update a figure or value should new data arise. Among other uses, that allows authors to automatically time-stamp their documents, or insert the current version number of the software they use into their methods. For instance, this document was built at \textbf{24 Feb 2022 17:39:18 MST} and calls the following R packages: \texttt{\{tidyverse\}} ver. \textbf{1.3.0}, \texttt{\{ggbeeswarm\}} ver. \textbf{0.6.0} and \texttt{\{bookdown\}} ver. \textbf{0.24}.
In this manuscript, created in RStudio using the R Markdown language, we will demonstrate a more practical example. (An Observable version is \href{https://observablehq.com/@jperkel/example-executable-observable-notebook}{also available}.)
\hypertarget{results}{%
\section{Results}\label{results}}
\hypertarget{sec:1}{%
\subsection{Inline computation}\label{sec:1}}
Imagine we are analyzing data from a clinical trial. We have grouped subjects in three bins and measured the concentration of some metabolite. (These data are simulated.)
Rather than analyzing those data and then copying the results into our manuscript, we can use the programming language \texttt{R} to do that in the manuscript itself. Simply enclose the code inside backticks, with the letter \texttt{r}. For instance, we could calculate the circumference and area of a circle:
\[A = \pi r^2, C = 2 \pi r\]
You could write ``A = \texttt{\textasciigrave{}r\ pi\ *\ r\^{}2\textasciigrave{}} and C = \texttt{\textasciigrave{}r\ 2\ *\ pi\ *\ r\textasciigrave{}}''. Plugging in the radius \emph{r} = \textbf{10}, that evaluates to ``A = \textbf{314.16} and C = \textbf{62.83}''.
Returning to our dataset, we can count the rows in our table to determine the number of samples, and insert that into the text. Thus, we have \textbf{99} (simulated) subjects in our study (see Table \ref{tab:show-table-1}; see \href{https://github.com/jperkel/computed_manuscript/blob/main/R/mock_data.R}{\texttt{R/mock\_data.R}} in the GitHub repository for code to generate a mock dataset). Note that the tables, figures and sections in this document are numbered automatically thanks to the \texttt{\{bookdown\}} package.
The average metabolite concentration in this dataset is \textbf{185.36} (range: \textbf{78 to 298}). We have \textbf{32} subjects in Group 1, \textbf{43} subjects in Group 2, and \textbf{24} in Group 3. (The numbers in \textbf{bold face type} throughout this document are computed values.)
\hypertarget{sec:2}{%
\subsection{Incorporating new data}\label{sec:2}}
Now suppose we get another tranche of data (Table \ref{tab:show-table-2}). There are \textbf{60} subjects in this new dataset, with an average concentration of \textbf{185.13} (range: \textbf{77 to 299}).
Combining the two datasets, we have a total of \textbf{159} subjects with an average metabolite concentration of \textbf{185.28} (range: \textbf{77 to 299}). We now have \textbf{55} subjects in Group 1, \textbf{60} in Group 2, and \textbf{44} in Group 3. The concentration distribution for each group in this joint dataset is shown graphically in Figure \ref{fig:plot-data-1}.
\begin{figure}
\centering
\includegraphics{computed_manuscript_files/figure-latex/plot-data-1-1.pdf}
\caption{\label{fig:plot-data-1}Metabolite concentration of clinical trial subjects}
\end{figure}
\hypertarget{importing-a-child-document}{%
\subsection{Importing a child document}\label{importing-a-child-document}}
Authors can break long manuscripts into more manageable pieces by placing each chapter or section in their own Markdown file and using the R Markdown \texttt{child} option. Though most of the text (and code) in this document is contained in the file \texttt{computed\_manuscript.Rmd}, the text for this section comes from \texttt{child\_doc.Rmd}. Citations that are created in the child automatically get inserted into the final document, making it possible to create a single, unified bibliography. For instance, here's a reference for the \href{https://bookdown.org/yihui/rmarkdown-cookbook/}{R Markdown Cookbook}.\textsuperscript{6}
In this child document, we'll add a third set of numbers to our growing dataset (Table \ref{tab:show-table-3}; note that the table, figure and section numbering in this child document matches that of the larger manuscript).
The new dataset describes \textbf{50} samples. Folding them into our existing data gives us \textbf{209} subjects, with \textbf{69} in Group 1, \textbf{74} in Group 2, and \textbf{66} in Group 3. The new concentration distribution is shown graphically in Figure \ref{fig:plot-data-2}.
\begin{figure}
\centering
\includegraphics{computed_manuscript_files/figure-latex/plot-data-2-1.pdf}
\caption{\label{fig:plot-data-2}Metabolite concentration of final clinical trial dataset}
\end{figure}
\hypertarget{code}{%
\section{Code}\label{code}}
The following code was used to load, merge, and plot the (simulated) clinical trial data in Figure \ref{fig:plot-data-1}:
\begin{Shaded}
\begin{Highlighting}[]
\CommentTok{\# load libraries}
\FunctionTok{library}\NormalTok{(tidyverse)}
\FunctionTok{library}\NormalTok{(ggbeeswarm)}
\FunctionTok{library}\NormalTok{(bookdown)}
\end{Highlighting}
\end{Shaded}
\begin{Shaded}
\begin{Highlighting}[]
\CommentTok{\# read in some initial data}
\NormalTok{df1 }\OtherTok{\textless{}{-}} \FunctionTok{read\_csv}\NormalTok{(}\StringTok{\textquotesingle{}data/example{-}data{-}1.csv\textquotesingle{}}\NormalTok{)}
\end{Highlighting}
\end{Shaded}
\begin{Shaded}
\begin{Highlighting}[]
\CommentTok{\# read new dataset}
\NormalTok{df2 }\OtherTok{\textless{}{-}} \FunctionTok{read\_csv}\NormalTok{(}\StringTok{\textquotesingle{}data/example{-}data{-}2.csv\textquotesingle{}}\NormalTok{)}
\end{Highlighting}
\end{Shaded}
\begin{Shaded}
\begin{Highlighting}[]
\CommentTok{\# merge datasets}
\NormalTok{final\_data }\OtherTok{\textless{}{-}} \FunctionTok{rbind}\NormalTok{(df1, df2)}
\end{Highlighting}
\end{Shaded}
\begin{Shaded}
\begin{Highlighting}[]
\CommentTok{\# create a box{-}plot with overlaid points}
\NormalTok{create\_plot }\OtherTok{\textless{}{-}} \ControlFlowTok{function}\NormalTok{(mytable) \{}
\NormalTok{ p }\OtherTok{\textless{}{-}}\NormalTok{ mytable }\SpecialCharTok{\%\textgreater{}\%}
\FunctionTok{ggplot}\NormalTok{(}\FunctionTok{aes}\NormalTok{(}\AttributeTok{x =}\NormalTok{ class, }\AttributeTok{y =}\NormalTok{ conc, }\AttributeTok{fill =}\NormalTok{ class, }\AttributeTok{color =}\NormalTok{ class)) }\SpecialCharTok{+}
\FunctionTok{geom\_boxplot}\NormalTok{(}\AttributeTok{outlier.shape =} \ConstantTok{NA}\NormalTok{, }\AttributeTok{alpha =} \FloatTok{0.2}\NormalTok{) }\SpecialCharTok{+}
\NormalTok{ ggbeeswarm}\SpecialCharTok{::}\FunctionTok{geom\_quasirandom}\NormalTok{(}\AttributeTok{width =} \FloatTok{0.25}\NormalTok{) }\SpecialCharTok{+}
\FunctionTok{xlab}\NormalTok{(}\StringTok{""}\NormalTok{) }\SpecialCharTok{+}
\FunctionTok{ylab}\NormalTok{(}\StringTok{"Metabolite concentration"}\NormalTok{) }\SpecialCharTok{+}
\FunctionTok{theme\_minimal}\NormalTok{() }\SpecialCharTok{+}
\FunctionTok{theme}\NormalTok{(}\AttributeTok{legend.position =} \StringTok{"none"}\NormalTok{)}
\NormalTok{ p}
\NormalTok{\}}
\end{Highlighting}
\end{Shaded}
\begin{Shaded}
\begin{Highlighting}[]
\CommentTok{\# plot the data}
\FunctionTok{create\_plot}\NormalTok{(final\_data)}
\end{Highlighting}
\end{Shaded}
\begin{table}
\caption{\label{tab:show-table-1}Initial subject data}
\centering
\begin{tabular}[t]{llrlllrlllr}
\toprule
ID & Class & Conc & | & ID & Class & Conc & | & ID & Class & Conc\\
\midrule
ID\_1 & Group 2 & 153 & | & ID\_34 & Group 2 & 221 & | & ID\_67 & Group 3 & 148\\
ID\_2 & Group 1 & 224 & | & ID\_35 & Group 1 & 112 & | & ID\_68 & Group 1 & 281\\
ID\_3 & Group 2 & 127 & | & ID\_36 & Group 3 & 246 & | & ID\_69 & Group 3 & 295\\
ID\_4 & Group 2 & 194 & | & ID\_37 & Group 2 & 190 & | & ID\_70 & Group 2 & 111\\
ID\_5 & Group 1 & 251 & | & ID\_38 & Group 1 & 177 & | & ID\_71 & Group 2 & 132\\
\addlinespace
ID\_6 & Group 1 & 81 & | & ID\_39 & Group 1 & 148 & | & ID\_72 & Group 2 & 261\\
ID\_7 & Group 2 & 100 & | & ID\_40 & Group 2 & 290 & | & ID\_73 & Group 1 & 122\\
ID\_8 & Group 1 & 270 & | & ID\_41 & Group 2 & 151 & | & ID\_74 & Group 2 & 124\\
ID\_9 & Group 2 & 100 & | & ID\_42 & Group 2 & 159 & | & ID\_75 & Group 1 & 234\\
ID\_10 & Group 1 & 161 & | & ID\_43 & Group 2 & 113 & | & ID\_76 & Group 2 & 184\\
\addlinespace
ID\_11 & Group 3 & 158 & | & ID\_44 & Group 1 & 249 & | & ID\_77 & Group 3 & 272\\
ID\_12 & Group 3 & 118 & | & ID\_45 & Group 1 & 124 & | & ID\_78 & Group 1 & 242\\
ID\_13 & Group 2 & 143 & | & ID\_46 & Group 3 & 87 & | & ID\_79 & Group 2 & 277\\
ID\_14 & Group 2 & 258 & | & ID\_47 & Group 1 & 166 & | & ID\_80 & Group 3 & 236\\
ID\_15 & Group 3 & 224 & | & ID\_48 & Group 1 & 196 & | & ID\_81 & Group 1 & 101\\
\addlinespace
ID\_16 & Group 3 & 254 & | & ID\_49 & Group 1 & 112 & | & ID\_82 & Group 3 & 218\\
ID\_17 & Group 3 & 190 & | & ID\_50 & Group 1 & 289 & | & ID\_83 & Group 2 & 130\\
ID\_18 & Group 2 & 148 & | & ID\_51 & Group 2 & 161 & | & ID\_84 & Group 1 & 128\\
ID\_19 & Group 1 & 89 & | & ID\_52 & Group 3 & 270 & | & ID\_85 & Group 3 & 252\\
ID\_20 & Group 2 & 89 & | & ID\_53 & Group 2 & 237 & | & ID\_86 & Group 1 & 198\\
\addlinespace
ID\_21 & Group 3 & 253 & | & ID\_54 & Group 2 & 280 & | & ID\_87 & Group 1 & 169\\
ID\_22 & Group 3 & 231 & | & ID\_55 & Group 2 & 175 & | & ID\_88 & Group 2 & 185\\
ID\_23 & Group 1 & 112 & | & ID\_56 & Group 2 & 223 & | & ID\_89 & Group 1 & 216\\
ID\_24 & Group 2 & 277 & | & ID\_57 & Group 3 & 295 & | & ID\_90 & Group 2 & 185\\
ID\_25 & Group 2 & 197 & | & ID\_58 & Group 1 & 275 & | & ID\_91 & Group 2 & 97\\
\addlinespace
ID\_26 & Group 2 & 208 & | & ID\_59 & Group 2 & 120 & | & ID\_92 & Group 2 & 165\\
ID\_27 & Group 2 & 193 & | & ID\_60 & Group 1 & 78 & | & ID\_93 & Group 3 & 89\\
ID\_28 & Group 3 & 141 & | & ID\_61 & Group 3 & 78 & | & ID\_94 & Group 2 & 221\\
ID\_29 & Group 1 & 206 & | & ID\_62 & Group 3 & 140 & | & ID\_95 & Group 1 & 162\\
ID\_30 & Group 2 & 168 & | & ID\_63 & Group 3 & 294 & | & ID\_96 & Group 1 & 131\\
\addlinespace
ID\_31 & Group 2 & 298 & | & ID\_64 & Group 3 & 295 & | & ID\_97 & Group 1 & 93\\
ID\_32 & Group 1 & 144 & | & ID\_65 & Group 3 & 285 & | & ID\_98 & Group 2 & 240\\
ID\_33 & Group 2 & 241 & | & ID\_66 & Group 2 & 129 & | & ID\_99 & Group 2 & 86\\
\bottomrule
\end{tabular}
\end{table}
\begin{table}
\caption{\label{tab:show-table-2}Second batch of subject data}
\centering
\begin{tabular}[t]{llrlllrlllr}
\toprule
ID & Class & Conc & | & ID & Class & Conc & | & ID & Class & Conc\\
\midrule
ID\_100 & Group 2 & 219 & | & ID\_120 & Group 2 & 85 & | & ID\_140 & Group 2 & 77\\
ID\_101 & Group 2 & 243 & | & ID\_121 & Group 3 & 181 & | & ID\_141 & Group 1 & 299\\
ID\_102 & Group 2 & 213 & | & ID\_122 & Group 3 & 216 & | & ID\_142 & Group 3 & 222\\
ID\_103 & Group 1 & 177 & | & ID\_123 & Group 1 & 222 & | & ID\_143 & Group 1 & 85\\
ID\_104 & Group 3 & 197 & | & ID\_124 & Group 3 & 252 & | & ID\_144 & Group 1 & 273\\
\addlinespace
ID\_105 & Group 2 & 198 & | & ID\_125 & Group 1 & 166 & | & ID\_145 & Group 3 & 115\\
ID\_106 & Group 1 & 120 & | & ID\_126 & Group 2 & 204 & | & ID\_146 & Group 1 & 290\\
ID\_107 & Group 3 & 170 & | & ID\_127 & Group 2 & 243 & | & ID\_147 & Group 2 & 269\\
ID\_108 & Group 3 & 78 & | & ID\_128 & Group 3 & 198 & | & ID\_148 & Group 2 & 97\\
ID\_109 & Group 1 & 129 & | & ID\_129 & Group 1 & 119 & | & ID\_149 & Group 1 & 229\\
\addlinespace
ID\_110 & Group 1 & 137 & | & ID\_130 & Group 1 & 198 & | & ID\_150 & Group 3 & 176\\
ID\_111 & Group 3 & 217 & | & ID\_131 & Group 3 & 151 & | & ID\_151 & Group 2 & 164\\
ID\_112 & Group 1 & 227 & | & ID\_132 & Group 3 & 115 & | & ID\_152 & Group 3 & 172\\
ID\_113 & Group 3 & 81 & | & ID\_133 & Group 3 & 237 & | & ID\_153 & Group 1 & 222\\
ID\_114 & Group 2 & 248 & | & ID\_134 & Group 2 & 178 & | & ID\_154 & Group 1 & 285\\
\addlinespace
ID\_115 & Group 1 & 211 & | & ID\_135 & Group 1 & 275 & | & ID\_155 & Group 2 & 153\\
ID\_116 & Group 1 & 113 & | & ID\_136 & Group 2 & 178 & | & ID\_156 & Group 3 & 132\\
ID\_117 & Group 1 & 216 & | & ID\_137 & Group 3 & 267 & | & ID\_157 & Group 2 & 156\\
ID\_118 & Group 3 & 91 & | & ID\_138 & Group 1 & 95 & | & ID\_158 & Group 1 & 260\\
ID\_119 & Group 3 & 258 & | & ID\_139 & Group 1 & 108 & | & ID\_159 & Group 2 & 201\\
\bottomrule
\end{tabular}
\end{table}
\begin{table}
\caption{\label{tab:show-table-3}Third batch of subject data}
\centering
\begin{tabular}[t]{lllllllllll}
\toprule
ID & Class & Conc & | & ID & Class & Conc & | & ID & Class & Conc\\
\midrule
ID\_160 & Group 2 & 210 & | & ID\_177 & Group 2 & 288 & | & ID\_194 & Group 3 & 123\\
ID\_161 & Group 3 & 107 & | & ID\_178 & Group 1 & 262 & | & ID\_195 & Group 2 & 212\\
ID\_162 & Group 2 & 262 & | & ID\_179 & Group 2 & 217 & | & ID\_196 & Group 1 & 99\\
ID\_163 & Group 1 & 215 & | & ID\_180 & Group 3 & 87 & | & ID\_197 & Group 3 & 264\\
ID\_164 & Group 1 & 220 & | & ID\_181 & Group 3 & 266 & | & ID\_198 & Group 2 & 279\\
\addlinespace
ID\_165 & Group 3 & 288 & | & ID\_182 & Group 3 & 79 & | & ID\_199 & Group 2 & 126\\
ID\_166 & Group 3 & 287 & | & ID\_183 & Group 1 & 152 & | & ID\_200 & Group 1 & 276\\
ID\_167 & Group 3 & 213 & | & ID\_184 & Group 3 & 223 & | & ID\_201 & Group 3 & 213\\
ID\_168 & Group 1 & 84 & | & ID\_185 & Group 3 & 118 & | & ID\_202 & Group 2 & 212\\
ID\_169 & Group 3 & 160 & | & ID\_186 & Group 1 & 214 & | & ID\_203 & Group 1 & 104\\
\addlinespace
ID\_170 & Group 2 & 194 & | & ID\_187 & Group 3 & 200 & | & ID\_204 & Group 1 & 199\\
ID\_171 & Group 1 & 119 & | & ID\_188 & Group 1 & 271 & | & ID\_205 & Group 1 & 272\\
ID\_172 & Group 3 & 218 & | & ID\_189 & Group 3 & 237 & | & ID\_206 & Group 1 & 86\\
ID\_173 & Group 2 & 217 & | & ID\_190 & Group 3 & 170 & | & ID\_207 & Group 2 & 181\\
ID\_174 & Group 3 & 103 & | & ID\_191 & Group 2 & 156 & | & ID\_208 & Group 3 & 114\\
\addlinespace
ID\_175 & Group 3 & 94 & | & ID\_192 & Group 2 & 288 & | & ID\_209 & Group 2 & 248\\
ID\_176 & Group 3 & 270 & | & ID\_193 & Group 3 & 193 & | & & & \\
\bottomrule
\end{tabular}
\end{table}
\hypertarget{colophon}{%
\section{Colophon}\label{colophon}}
This manuscript was built at \textbf{24 Feb 2022 17:39:19 MST} using the following computational environment and dependencies:
\begin{verbatim}
## R version 4.0.4 (2021-02-15)
## Platform: x86_64-apple-darwin17.0 (64-bit)
## Running under: macOS Big Sur 10.16
##
## Matrix products: default
## BLAS: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
## LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
##
## locale:
## [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] bookdown_0.24 ggbeeswarm_0.6.0 forcats_0.5.1 stringr_1.4.0
## [5] dplyr_1.0.5 purrr_0.3.4 readr_2.1.1 tidyr_1.1.3
## [9] tibble_3.1.6 ggplot2_3.3.3 tidyverse_1.3.0
##
## loaded via a namespace (and not attached):
## [1] Rcpp_1.0.7 lubridate_1.8.0 assertthat_0.2.1 digest_0.6.29
## [5] utf8_1.2.2 R6_2.5.1 cellranger_1.1.0 backports_1.2.1
## [9] reprex_2.0.1 evaluate_0.14 highr_0.9 httr_1.4.2
## [13] pillar_1.6.4 rlang_0.4.12 readxl_1.3.1 rstudioapi_0.13
## [17] rticles_0.22 rmarkdown_2.11 labeling_0.4.2 bit_4.0.4
## [21] munsell_0.5.0 broom_0.7.6 compiler_4.0.4 vipor_0.4.5
## [25] modelr_0.1.8 xfun_0.29 pkgconfig_2.0.3 htmltools_0.5.2
## [29] tidyselect_1.1.1 fansi_1.0.0 crayon_1.4.2 tzdb_0.2.0
## [33] dbplyr_2.1.0 withr_2.4.3 grid_4.0.4 jsonlite_1.7.2
## [37] gtable_0.3.0 lifecycle_1.0.1 DBI_1.1.1 magrittr_2.0.1
## [41] scales_1.1.1 cli_3.1.0 stringi_1.7.6 vroom_1.5.7
## [45] farver_2.1.0 fs_1.5.2 xml2_1.3.3 ellipsis_0.3.2
## [49] generics_0.1.1 vctrs_0.3.8 tools_4.0.4 bit64_4.0.5
## [53] glue_1.6.0 beeswarm_0.4.0 hms_1.1.1 parallel_4.0.4
## [57] fastmap_1.1.0 yaml_2.2.1 colorspace_2.0-0 rvest_1.0.2
## [61] knitr_1.37 haven_2.3.1
\end{verbatim}
The current Git commit details are:
\begin{verbatim}
## [9906399] 2022-02-25: Fix link to Observable example.
\end{verbatim}
\hypertarget{references}{%
\section*{References}\label{references}}
\addcontentsline{toc}{section}{References}
\hypertarget{refs}{}
\begin{CSLReferences}{0}{0}
\leavevmode\vadjust pre{\hypertarget{ref-shen2014}{}}%
\CSLLeftMargin{1. }
\CSLRightInline{Shen, H. \href{https://doi.org/10.1038/515151a}{Interactive notebooks: Sharing the code}. \emph{Nature} \textbf{515}, 151--152 (2014).}
\leavevmode\vadjust pre{\hypertarget{ref-perkel2018a}{}}%
\CSLLeftMargin{2. }
\CSLRightInline{Perkel, J. M. \href{https://doi.org/10.1038/d41586-018-05990-5}{A toolkit for data transparency takes shape}. \emph{Nature} \textbf{560}, 513--515 (2018).}
\leavevmode\vadjust pre{\hypertarget{ref-perkel2018}{}}%
\CSLLeftMargin{3. }
\CSLRightInline{Perkel, J. M. \href{https://doi.org/10.1038/d41586-018-07196-1}{Why Jupyter is data scientists{'} computational notebook of choice}. \emph{Nature} \textbf{563}, 145--146 (2018).}
\leavevmode\vadjust pre{\hypertarget{ref-perkel2020}{}}%
\CSLLeftMargin{4. }
\CSLRightInline{Perkel, J. M. \href{https://doi.org/10.1038/d41586-020-02491-2}{Streamline your writing {\textemdash} and collaborations {\textemdash} with these reference managers}. \emph{Nature} \textbf{585}, 149--150 (2020).}
\leavevmode\vadjust pre{\hypertarget{ref-perkel2021}{}}%
\CSLLeftMargin{5. }
\CSLRightInline{Perkel, J. M. \href{https://doi.org/10.1038/d41586-021-01174-w}{Reactive, reproducible, collaborative: computational notebooks evolve}. \emph{Nature} \textbf{593}, 156--157 (2021).}
\leavevmode\vadjust pre{\hypertarget{ref-xieMarkdownCookbook2020}{}}%
\CSLLeftMargin{6. }
\CSLRightInline{Xie, Y., Dervieux, C. \& Riederer, E. \emph{R {Markdown Cookbook}}. ({Chapman and Hall/CRC}, 2020).}
\end{CSLReferences}
\bibliographystyle{spbasic}
\bibliography{bibliography.bib}
\end{document}