-
Notifications
You must be signed in to change notification settings - Fork 2
/
template.qmd
68 lines (50 loc) · 1.07 KB
/
template.qmd
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
---
title: My great presentation with a title that is far too long
author: Hypatia of Alexandria
date: today
toc: true
format:
presentation-beamer: default
presentation-revealjs+letterbox: default
---
```{r}
#| label: load-packages
library(knitr)
library(ggplot2)
library(dplyr)
```
# Goals
## Goals
The main goals for this slide:
- This is just to show you how this \emph{template} works
- The blue in this template is based on the official Monash University color palette
### beamer options
- Use the `titlegraphic` option to include a different background image for the title slide
- Use the `titlecolor` option to change the color for the text on the title slide.
# Tables and graphs
## Slide 2
A nice table
```{r}
mtcars |>
select(mpg:wt) |>
head() |>
kable(booktabs = TRUE)
```
## Slide 3
And a graph
```{r}
#| fig-height: 3.8
mtcars |>
ggplot(aes(x=wt, y = mpg)) +
geom_point()
```
## Slide 4
The sample standard deviation is given by
$$
s = \sqrt{\frac{1}{n-1} \sum_{i=1}^n (x_i - \bar{x})^2}
$$
## Testing monospace font
```{r}
#| echo: true
mtcars
```