# load your favorite libraries
library(knitr)  # for kable (see below)
library(ggplot2)

for written-out talks...

  • text slide with an incremental
  • build

::: noslide Sometimes you want to speak from a written-out script rather than notes. This file demonstrates this approach. Text that goes only in the script, and not on slides, should be placed in a pandoc Div delimited by ::: noslide and :::.

Incremental builds are collapsed in the script as well. :::

an example table

kable(mtcars[1:5, 1:5],
      caption="Something about cars")

an example graphic

ggplot(trees, aes(Girth, Height)) +
    geom_point(color="white")

ugly examples of custom placement and sizing

p <- ggplot(mtcars, aes(factor(cyl))) +
    geom_bar(color="white", fill="grey40") +
    xlab("Another car thing")
p

\begin{textblock}{2.75}(3,2)

Look! a dodgy three-column layout!

With great layout power comes great, etc., etc. \end{textblock}

\begin{textblock}{2.75}(6,1)

p

Text scaling: \ a cautionary tale. \end{textblock}

\vspace{8\TPVertModule}

::: noslide On the script, the textpos grid is shrunk down. Note too that textblocks take up no vertical space, so to prevent overprinting in the script you must manually insert some vertical space with \vspace. Extra vertical space at the bottom of a slide will have no effect on the slide output (just the script). :::

example code display

cor(anscombe$x1, anscombe$y1)
cor(anscombe$x2, anscombe$y2)

Definitely don't need to visualize.

::: noslide Nonetheless, don't think plotting the data is synonymous with analyzing it. Let's discuss.... :::



agoldst/scuro documentation built on Nov. 5, 2021, 3:44 a.m.