-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.Rmd
151 lines (120 loc) · 4.13 KB
/
index.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
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
---
title: '**Dynamic Functional Connectivity**'
subtitle: A tutorial
author:
- Lucas G. S. França ^[King's College London, [email protected]]
- Sunniva Fenn-Moltu ^[King's College London, [email protected]]
- Dafnis Batalle ^[King's College London, [email protected]]
output:
html_document:
theme: cerulean
highlight: pygments
toc: yes
toc_depth: 3
toc_float: yes
number_sections: no
df_print: kable
code_folding: hide
code_download: yes
word_document:
reference_docx: utils/Template_Word.docx
highlight: pygments
toc: no
toc_depth: 3
df_print: kable
number_sections: yes
rmarkdown::html_vignette:
toc: yes
toc_depth: 3
pdf_document:
toc: yes
toc_depth: '2'
latex_engine: xelatex
editor_options:
chunk_output_type: inline
bibliography: utils/bibliography.bib
csl: utils/apa.csl
---
<!--
!!!! IMPORTANT: run `source("utils/render.R")` to publish instead of clicking on 'Knit'
-->
```{r setup, warning=FALSE, message=TRUE, include=FALSE}
source("utils/config.R")
fast <- FALSE # Make this false to skip the chunks
```
# Introduction
```{r badges, echo=FALSE, message=TRUE, warning=FALSE, results='asis'}
# This chunk is a bit complex so don't worry about it: it's made to add badges to the HTML versions
# NOTE: You have to replace the links accordingly to have working "buttons" on the HTML versions
if (!knitr::is_latex_output() && knitr::is_html_output()) {
cat("![Build](https://github.com/CoDe-Neuro/dfc_chapter/workflows/Build/badge.svg)
[![License: CC BY-SA 4.0](https://img.shields.io/badge/License-CC%20BY--SA%204.0-lightgrey.svg)](https://creativecommons.org/licenses/by-sa/4.0/)
[![Website](https://img.shields.io/badge/repo-Readme-2196F3)](https://github.com/CoDe-Neuro/dfc_chapter)
[![Website](https://img.shields.io/badge/visit-website-E91E63)](https://code-neuro.github.io/dfc_chapter/)
[![Website](https://img.shields.io/badge/download-.docx-FF5722)](https://github.com/CoDe-Neuro/dfc_chapter/raw/main/word_and_pdf/SupplementaryMaterials.docx)
[![Website](https://img.shields.io/badge/see-.pdf-FF9800)](https://github.com/CoDe-Neuro/TemplateResults/blob/main/word_and_pdf/SupplementaryMaterials.pdf)")
}
```
This document was prepared on `r format(Sys.Date())`.
# Fig 1
```{r fig1, echo=FALSE, out.width = "50%", message=TRUE, warning=FALSE}
# Let's include a demo GIF (this doesn't work in PDF documents)
if (!knitr::is_latex_output()) {
knitr::include_graphics("figures/fig1.png")
}
```
# Fig 2
```{r fig2, echo=FALSE, message=TRUE, warning=FALSE}
# Let's include a demo GIF (this doesn't work in PDF documents)
if (!knitr::is_latex_output()) {
knitr::include_graphics("figures/fig2.svg")
}
```
Adapted from: https://en.wikipedia.org/wiki/Voxel#/media/File:Voxels.svg
# Fig 3
```{r fig3, echo=FALSE, message=TRUE, warning=FALSE}
# Let's include a demo GIF (this doesn't work in PDF documents)
if (!knitr::is_latex_output()) {
knitr::include_graphics("figures/fig3.png")
}
```
# Fig 4
```{r fig4, echo=FALSE, message=TRUE, warning=FALSE}
# Let's include a demo GIF (this doesn't work in PDF documents)
if (!knitr::is_latex_output()) {
knitr::include_graphics("figures/fig4.png")
}
```
# Fig 5
```{r fig5, echo=FALSE, message=TRUE, warning=FALSE}
# Let's include a demo GIF (this doesn't work in PDF documents)
if (!knitr::is_latex_output()) {
knitr::include_graphics("figures/fig5.svg")
}
```
# Fig 6
```{r fig6, echo=FALSE, message=TRUE, warning=FALSE}
# Let's include a demo GIF (this doesn't work in PDF documents)
if (!knitr::is_latex_output()) {
knitr::include_graphics("figures/fig6.png")
}
```
# Fig 7
```{r fig7, echo=FALSE, message=TRUE, warning=FALSE}
# Let's include a demo GIF (this doesn't work in PDF documents)
if (!knitr::is_latex_output()) {
knitr::include_graphics("figures/fig7.png")
}
```
```{r child=if (fast == FALSE) 'slide.Rmd'}
```
```{r child=if (fast == FALSE) 'cofluct.Rmd'}
```
```{r child=if (fast == FALSE) 'phase.Rmd'}
```
```{r child=if (fast == FALSE) 'leida.Rmd'}
```
# Package References
```{r warning=FALSE, message=FALSE, results='asis'}
report::cite_packages(sessionInfo())
```