-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.qmd
More file actions
400 lines (282 loc) · 9.46 KB
/
index.qmd
File metadata and controls
400 lines (282 loc) · 9.46 KB
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
---
title: "Your title here<h1>🧬🔬</h1>"
subtitle: "Daniel Fürth <br>
<font size='5'>Fürth lab, Uppsala University</font>
<br><img src='images/logos-01.svg'>"
# format:
# pptx:
# reference-doc: template.pptx #uncomment and comment format: revealjs: block to make powerpoint
# format: pdf
format:
revealjs:
slide-number: true
chalkboard:
buttons: false
preview-links: auto
css: styles.css
footer: "<i class='fa fa-calendar' aria-hidden='true'></i> May 9, 15:15 - 16:00 |
<i class='fa fa-map-marker' aria-hidden='true'></i> Location, Institution, City |
<i class='fa fa-user'></i> name of conference/lab meeting"
highlight-style: vscode.theme
---
```{r load_packages, message=FALSE, warning=FALSE, include=FALSE}
if(!require(fontawesome)){
install.packages('fontawesome')
library(fontawesome)
}
if(!require(rsvg)){
install.packages('rsvg')
library(rsvg)
}
```
## This is a standard slide.
Here you can add some text. Next slide starts with the hash symbol (`## Title`) to mark its title.
```{r echo=FALSE}
var <- rnorm(100) #code not shown but executed
```
```{r echo=FALSE}
plot(var) #code executed but not shown
```
```{python echo=TRUE}
import numpy as np #works with python as well
numbers = [10, 20, 30, 40, 50]
arr = np.array(numbers)
mean = np.mean(arr)
print("Mean:", mean)
```
## Columns
:::: {.columns}
::: {.column width="30%"}
- Topic 2
- Level 1
- Level 2
- Level 3
:::
::: {.column width="30%"}
- Topic 3
- Level 1
- Sublevel 4
- Level 2
- Level 3
:::
::: {.column width="30%"}
- Topic 4
- Level 1
- Level 2
- Level 3
:::
::::
## 🗣 Content
This is what will be discussed today.
Always good to explain the agenda so audience can have clear expectations.
::: {.fragment .fade}
<h3>Therse are animated bullet points:</h3>
- 📜 Point one
- 🧫 Point two
- 🚀 Point three
:::
::: {.fragment .fade}
...You can use [Font Awesome](https://fontawesome.com/) symbols as well `r fa("font-awesome", fill = "steelblue")`.
:::
## Slide with a table
Using Markdown you can also write tables
| Reagent | Volume | Final Concentration |
|---------------------------|-------------|---------------------|
| Sterile water or NF-water | 840 µl | |
| 10xPBS | 100 µl | 1x |
| 10% Tween-20 | 10 µl | 0.1% Tween-20 |
| 10% BSA | 50 µl | 1% BSA |
| **TOTAL:** | **1000 µl** | |
I recommend the online Markdown table generator:
[https://www.tablesgenerator.com/markdown_tables](https://www.tablesgenerator.com/markdown_tables)
# Links
I recommend the online Markdown table generator:
[https://www.tablesgenerator.com/markdown_tables](https://www.tablesgenerator.com/markdown_tables)
Links like this 👆 are written by this code:
```
[text to display](https://www.google.com/)
```
[text to display](https://www.google.com/)
# Code blocks
Here is some code for a plot in R:
```r
# Sample data
x <- c(1, 2, 3, 4, 5)
y <- c(2, 4, 6, 8, 10)
# Create a scatter plot using Base R plot function
plot(x, y,
type = "p", # 'p' for points
col = "blue", # Point color
pch = 16, # Point shape (16 for filled circles)
cex = 2, # Point size
xlab = "X-axis Label", # X-axis label
ylab = "Y-axis Label", # Y-axis label
main = "Scatter Plot Example" # Main title
)
```
# Code blocks
Here is some R code executed:
```{r echo=TRUE}
# Sample data
x <- c(1, 2, 3, 4, 5)
y <- c(2, 4, 6, 8, 10)
# Create a scatter plot using Base R plot function
plot(x, y, type = "p", col = "blue", pch = 16, cex = 2, xlab = "X-axis Label", ylab = "Y-axis Label", main = "Scatter Plot Example" )
```
# Code blocks
Here is some R code executed without `echo=TRUE`:
```{r}
# Sample data
x <- c(1, 2, 3, 4, 5)
y <- c(2, 4, 6, 8, 10)
# Create a scatter plot using Base R plot function
plot(x, y, type = "p", col = "blue", pch = 16, cex = 2, xlab = "X-axis Label", ylab = "Y-axis Label", main = "Scatter Plot Example" )
```
# Statistics in text
:::: {.columns}
::: {.column width="40%"}
I have some R code:
```{r echo=TRUE}
data <- rnorm(100, 50, 15)
hist(data)
```
:::
::: {.column width="60%"}
The mean is:
- `r mean(data)`
The standard deviation is:
- `r sd(data)`
And if I use `round()`:
- `r round(mean(data), 2)`
- `r round(sd(data), 2)`
:::
::::
## <span style="top: 50%; -webkit-transform: translate(0, -50%); position: absolute;">📜 You can also have a slide with a website embedded</span>
::: footer
:::
---
## {background-iframe="http://www.wikipedia.com" background-interactive="true" background-size="contain"}
::: footer
:::
## <span style="top: 50%; -webkit-transform: translate(0, -50%); position: absolute;">📜 Just a title slide</span>
::: footer
:::
---
## 📜 Two-column image/text slide
::: {.container}
:::: {.col}
This is a two column container when you want text next to an image.
<center>
<figure>
<img src="https://www.bioc.cam.ac.uk/sites/www.bioc.cam.ac.uk/files/styles/leading/public/7_frederick_sanger.jpg" style="border-radius: 10px; height: 25%;">
<figcaption>Caption: Fred Sanger having a drink</figcaption>
</figure>
</center>
::::
:::: {.col}
<img src="images/sequence_autorad_85.jpeg" style="height: 600px; margin-top: -20px;"></img>
::::
:::
::: footer
`r fa("book", fill = "steelblue")` [Sanger et al. 1977 _PNAS_](https://doi.org/10.1073/pnas.74.12.5463)
:::
## Citations
Add your references by specifying the footer like this:
```
::: footer
r fa("book", fill = "steelblue") [Sanger et al. 1977 _PNAS_](https://doi.org/10.1073/pnas.74.12.5463)
:::
```
Then a link will display the citation in the footer next to the book icon `r fa("book", fill = "steelblue")`.
In this case a paper from Fred Sanger published in _PNAS_ 1977.
::: footer
`r fa("book", fill = "steelblue")` [Sanger et al. 1977 _PNAS_](https://doi.org/10.1073/pnas.74.12.5463)
:::
## Fragments
Incremental text display and animation with fragments:
<br/>
::: {.fragment .fade-in}
Fade in
:::
::: {.fragment .fade-up}
Slide up while fading in
:::
::: {.fragment .fade-left}
Slide left while fading in
:::
::: {.fragment .fade-in-then-semi-out}
Fade in then semi out
:::
. . .
::: {.fragment .strike}
Strike
:::
::: {.fragment .highlight-red}
Highlight red
:::
::: footer
Learn more: [Fragments](https://quarto.org/docs/presentations/revealjs/advanced.html#fragments)
:::
## Chalkboard {chalkboard-buttons="true"}
::: {style="margin-bottom: 0.9em;"}
Free form drawing and slide annotations
:::
::: {layout="[1, 20]"}
{width="41"}
Use the chalkboard button at the bottom left of the slide to toggle the chalkboard.
:::
::: {layout="[1, 20]"}
{width="41"}
Use the notes canvas button at the bottom left of the slide to toggle drawing on top of the current slide.
:::
You can also press `b` to toggle the chalkboard or `c` to toggle the notes canvas.
::: footer
Learn more: [Chalkboard](https://quarto.org/docs/presentations/revealjs/presenting.html#chalkboard)
:::
## Slide Backgrounds {background="#43464B"}
Set the `background` attribute on a slide to change the background color (all CSS color formats are supported).
Different background transitions are available via the `background-transition` option.
::: footer
Learn more: [Slide Backgrounds](https://quarto.org/docs/presentations/revealjs/#color-backgrounds)
:::
## Media Backgrounds {background="#43464B" background-image="images/milky-way.jpeg"}
You can also use the following as a slide background:
- An image: `background-image`
- A video: `background-video`
- An iframe: `background-iframe`
::: footer
Learn more: [Media Backgrounds](https://quarto.org/docs/presentations/revealjs/#image-backgrounds)
:::
## Absolute Position
Position images or other elements at precise locations
{.absolute .fragment top="150" right="80" width="450"}
{.absolute .fragment bottom="110" left="120" width="300"}
::: footer
Learn more: [Absolute Position](https://quarto.org/docs/presentations/revealjs/advanced.html#absolute-position)
:::
## Auto-Animate {auto-animate="true" auto-animate-easing="ease-in-out"}
Automatically animate matching elements across slides with Auto-Animate.
::: r-hstack
::: {data-id="box1" auto-animate-delay="0" style="background: #2780e3; width: 200px; height: 150px; margin: 10px;"}
:::
::: {data-id="box2" auto-animate-delay="0.1" style="background: #3fb618; width: 200px; height: 150px; margin: 10px;"}
:::
::: {data-id="box3" auto-animate-delay="0.2" style="background: #e83e8c; width: 200px; height: 150px; margin: 10px;"}
:::
:::
::: footer
Learn more: [Auto-Animate](https://quarto.org/docs/presentations/revealjs/advanced.html#auto-animate)
:::
## Auto-Animate {auto-animate="true" auto-animate-easing="ease-in-out"}
Automatically animate matching elements across slides with Auto-Animate.
::: r-stack
::: {data-id="box1" style="background: orange; width: 350px; height: 350px; border-radius: 200px;"}
:::
::: {data-id="box2" style="background: #3fb618; width: 250px; height: 250px; border-radius: 200px;"}
:::
::: {data-id="box3" style="background: #e83e8c; width: 150px; height: 150px; border-radius: 200px;"}
:::
:::
::: footer
Learn more: [Auto-Animate](https://quarto.org/docs/presentations/revealjs/advanced.html#auto-animate)
:::