Skip to content

Commit b9b9e74

Browse files
Cohort 1, Chapter 14 (#14)
slides about making Quarto slides Co-authored-by: Lydia Gibson <[email protected]>
1 parent f2c89b4 commit b9b9e74

6 files changed

+153
-4
lines changed

14_making-a-scientific-presentation-using-quarto.Rmd

Lines changed: 153 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,158 @@
22

33
**Learning objectives:**
44

5-
- THESE ARE NICE TO HAVE BUT NOT ABSOLUTELY NECESSARY
5+
- use headers
6+
- arrange into columns
7+
- deploy tab sets
8+
- create slideshows
69

7-
## SLIDE 1 {-}
10+
## Sections
811

9-
- ADD SLIDES AS SECTIONS (`##`).
10-
- TRY TO KEEP THEM RELATIVELY SLIDE-LIKE; THESE ARE NOTES, NOT THE BOOK ITSELF.
12+
We can delineate sections in our presentation using markdown **headers**
13+
14+
```{r}
15+
#| echo: true
16+
#| eval: false
17+
18+
# Major League Baseball
19+
## National League
20+
### East Division
21+
#### Philadelphia Phillies
22+
##### Pitchers
23+
###### Brad Lidge
24+
```
25+
26+
## Math (LaTeX)
27+
28+
```{r}
29+
#| echo: true
30+
#| eval: false
31+
32+
$$BA = \frac{H}{AB}, \quad ERA = \frac{ER}{IP} \cdot 9$$
33+
```
34+
35+
$$BA = \frac{H}{AB}, \quad ERA = \frac{ER}{IP} \cdot 9$$
36+
37+
## Columns
38+
39+
```{r}
40+
#| echo: true
41+
#| eval: false
42+
43+
:::: {.columns}
44+
45+
::: {.column width="45%"}
46+
![Brad Lidge](images/Brad_Lidge_Phillies.png)
47+
:::
48+
49+
::: {.column width="10%"}
50+
51+
:::
52+
53+
::: {.column width="45%"}
54+
![Andre Ethier](images/Andre_Ethier_Dodgers.png)
55+
:::
56+
57+
::::
58+
```
59+
60+
![columns for layout](images/quarto_column_example.png)
61+
62+
63+
## Tabsets
64+
65+
```{r}
66+
#| echo: true
67+
#| eval: false
68+
69+
::::: {.panel-tabset}
70+
71+
### Batting
72+
73+
#```{r}
74+
#Lahman::Batting |>
75+
# filter(playerID == "ethiean01")
76+
#```
77+
78+
### Pitching
79+
80+
#```{r}
81+
#Lahman::Pitching |>
82+
# filter(playerID == "lidgebr01")
83+
#```
84+
85+
### Fielding
86+
87+
88+
#```{r}
89+
#Lahman::Fielding |>
90+
# filter(playerID == "werthja01")
91+
#```
92+
93+
:::::
94+
```
95+
96+
![tabset for layout](images/quarto_tabset_example.png)
97+
98+
99+
## Callout Boxes
100+
101+
```{r}
102+
#| echo: true
103+
#| eval: false
104+
105+
::: {.callout-warning}
106+
## Brad Lidge
107+
108+
content
109+
110+
:::
111+
112+
::: {.callout-note}
113+
## Andre Ethier
114+
115+
content
116+
:::
117+
```
118+
119+
![callout boxes](images/quarto_callout_example.png)
120+
121+
### Collapsible Callout Boxes
122+
123+
![collapsible callout boxes](images/quarto_collapsible_example_1.png)
124+
125+
```{r}
126+
#| echo: true
127+
#| eval: false
128+
129+
::: {.callout-tip collapse="true"}
130+
## (optional) Obtaining Chadwick IDs
131+
132+
#content
133+
#```
134+
135+
:::
136+
```
137+
138+
![collapsible callout boxes](images/quarto_collapsible_example_2.png)
139+
140+
## Slideshows
141+
142+
```{r}
143+
#| echo: true
144+
#| eval: false
145+
146+
---
147+
title: "Andre Ethier versus Brad Lidge"
148+
author: ""
149+
date: "2025-07-16"
150+
format:
151+
revealjs:
152+
scrollable: true
153+
theme: league
154+
toc: false
155+
# format:
156+
# html:
157+
# toc: true
158+
---
159+
```

images/quarto_callout_example.png

69.9 KB
Loading
21.2 KB
Loading
52.4 KB
Loading

images/quarto_column_example.png

438 KB
Loading

images/quarto_tabset_example.png

19.7 KB
Loading

0 commit comments

Comments
 (0)