# load your favorite libraries library(knitr) # for kable (see below) library(ggplot2)
- 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. :::
kable(mtcars[1:5, 1:5], caption="Something about cars")
ggplot(trees, aes(Girth, Height)) + geom_point(color="white")
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 textblock
s 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).
:::
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.... :::
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.