class: center, middle, inverse, title-slide # Creating effective slides (2) ### Yue Jiang ### Duke University --- ### Software - PowerPoint / Keynote (easy, WYSIWYG) - LaTeX Beamer / R Markdown packages (clean, consistent, eventually straightforward) - Random online things like Prezi (don't do this) --- ### `xaringan` `xaringan` is an R package that lets users create clean HTML5 slides directly in R Markdown. One benefit is that you can specify your own .css files for formatting purposes. As well, since we're using R Markdown, we can directly run R commands, allowing us to create fully reproducible slide decks. Documentation is available [here](https://bookdown.org/yihui/rmarkdown/xaringan.html). --- ### `xaringan` examples Some examples of slides created using the `xaringan` package in R Mardown are those from STA 440! Links to the EM (1) lecture and spatial (3) lecture are provided here: - [EM (1)](https://www2.stat.duke.edu/courses/Fall21/sta440.001/slides/em-1.html) - [Spatial (3)](https://www2.stat.duke.edu/courses/Fall21/sta440.001/slides/spatial-3.html) --- ### `xaringan` examples <img src="img/xar1.png" width="100%" style="display: block; margin: auto;" /> --- ### `xaringan` examples <img src="img/xar2.png" width="100%" style="display: block; margin: auto;" /> --- ### `xaringan` examples <img src="img/xar3.png" width="100%" style="display: block; margin: auto;" /> --- ### `xaringan` examples <img src="img/xar4.png" width="100%" style="display: block; margin: auto;" /> --- ### `xaringan` examples <img src="img/xar5.png" width="90%" style="display: block; margin: auto;" /> --- ### beamer beamer is a LaTeX class that creates consistent, clean presentations. Like `xaringan`, it has a variety of built-in templates, but you can build your own or specify options as well. There are ways of integrating beamer with R in order to create fully reproducible presentations (e.g., Sweave), but they're a bit tougher to get started with. You will need a LaTeX installation on your computer and some sort of editor -- I'm partial to TeXStudio as my LaTeX editor, but others exist as well (e.g., TeXWorks, etc.). The GitHub repo is available [here](https://github.com/josephwright/beamer), and some helpful tutorials are available [here](https://math-linux.com/latex-26/article/how-to-make-a-presentation-with-latex-introduction-to-beamer) and [here](https://en.wikibooks.org/wiki/LaTeX/Presentations). --- ### beamer examples Some examples of slides created using the beamer class in LaTeX are those from STA 102. Links to the hypothesis testing lecture is provided here: - [Intro to hypothesis testing](https://www2.stat.duke.edu/courses/Fall20/sta102/slides/lec-10.pdf) --- ### beamer examples <img src="img/beamer1.png" width="90%" style="display: block; margin: auto;" /> --- ### beamer examples <img src="img/beamer2.png" width="100%" style="display: block; margin: auto;" /> --- ### beamer examples <img src="img/beamer3.png" width="100%" style="display: block; margin: auto;" /> --- ### beamer examples <img src="img/beamer4.png" width="100%" style="display: block; margin: auto;" /> --- ### beamer examples <img src="img/beamer5.png" width="100%" style="display: block; margin: auto;" /> --- ### Today's activity .question[ Once again, create a brief 5-slide deck regarding the DIG trial (feel free to build off of the one you created last class) - try to have a complete product by the end of class today, and create the deck in either `xaringan` in R Markdown or beamer using LaTeX if you are able to. ]