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

an example text slide

  • with an incremental
  • build

\note<1>{

And different notes on the first

}

\note<2>{

and second increments.

}

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}

example code display

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

Definitely don't need to visualize.



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