|
2 | 2 |
|
3 | 3 | **Learning objectives:** |
4 | 4 |
|
5 | | -- THESE ARE NICE TO HAVE BUT NOT ABSOLUTELY NECESSARY |
| 5 | +- use headers |
| 6 | +- arrange into columns |
| 7 | +- deploy tab sets |
| 8 | +- create slideshows |
6 | 9 |
|
7 | | -## SLIDE 1 {-} |
| 10 | +## Sections |
8 | 11 |
|
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 | + |
| 47 | +::: |
| 48 | +
|
| 49 | +::: {.column width="10%"} |
| 50 | + |
| 51 | +::: |
| 52 | +
|
| 53 | +::: {.column width="45%"} |
| 54 | + |
| 55 | +::: |
| 56 | +
|
| 57 | +:::: |
| 58 | +``` |
| 59 | + |
| 60 | + |
| 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 | + |
| 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 | + |
| 120 | + |
| 121 | +### Collapsible Callout Boxes |
| 122 | + |
| 123 | + |
| 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 | + |
| 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 | +``` |
0 commit comments