February 15, 2024
Start from scratch:
Or install and include this template:
In RStudio, install using the Terminal tab:
Here we have some text that may run over several lines of the slide frame, depending on how long it is.
Include output from R or Python directly as figures:
library(ggplot2)
library(tidyr)
library(dplyr)
library(stringr)
library(scico)
data("volcano")
volcano |>
as_tibble(.name_repair = "universal") |>
mutate(latitude = 1:n()) |>
pivot_longer(!latitude, names_to = "longitude", values_to = "altitude") |>
mutate(longitude = longitude |>
str_remove("[\\.]{3}") |>
as.numeric()) |>
ggplot() +
geom_contour_filled(aes(latitude, longitude, z = altitude),
bins = 20) +
scale_fill_scico_d(palette = "batlowW") +
theme_void() +
theme(legend.position = "none")
Feel free to include some math: \[ \left( \prod_{i=1}^{n} \right)^{\frac{1}{n}} =\sqrt[n]{x_1, x_2, ... x_n} \] or, equivalently: \[ \exp\left(\frac{1}{n} \sum_{i=1}^n \ln{a_i} \right) \]
The Quarto website provides more guidance on revealjs slides and Quarto in general:
https://quarto.org/docs/presentations/
Special classes for emphasis
.alert
class for default emphasis, e.g. important note..fg
class for custom colour, e.g. important note..bg
class for custom background, e.g. important note.Cross-references
.button
class provides a Beamer-like button, e.g. AppendixCitations follow the standard Quarto format and be sourced from BibLaTex, BibTeX, or CLS files. For example:
Topic 1: Stats and trends (Helsel et al. 2020; Schramm, Gitter, and Gregory 2022)
Topic 2: Watershed governance (Biddle 2017)
Quarto provides dedicated environments for theorems, lemmas, and so forth.
But in presentation format, it’s arguably more effective just to use a Callout Block.
Regression Specification
The main specification is as follows:
\[ y_{it} = X_{it} \beta + \mu_i + \varepsilon_{it} \]
Here is a long sentence that will wrap onto the next line as it hits the column width, and continue this way until it stops.
Some other text in another column.
A second paragraph.
Multicolumn support is very flexible and we can continue with a single full span column in the same slide.
Note that sub- and multi-panel figures are also natively supported by Quarto. See here.
Photo courtesy of Ed Rhodes
You can use the {.background-image}
container environment to completely fill the slide background with an image.
Ideally, your figure will be the same aspect ratio as the screen that you’re presenting on.
Quarto provides support for creating tables with markdown, html, R, Python and more: https://quarto.org/docs/authoring/tables.html
With a little effort you can create amazing html tables using the gt R package.
We’d love to talk about all things water
979.314.2824
You can add an appendix after a reference slide like this.