Making slide presentations

Andrew Irwin
2021-03-08

Goals

  • Why we make slides for data visualization
  • How to make slides using “R presentation” format

Create a template

Rstudio menu:

  • File
    • New File…
    • R presentation

Stopping distance increases with car speed

plot of chunk unnamed-chunk-2

Show computer code

cars %>% ggplot(aes(speed, dist)) + geom_point()

Formatting text and adding images

All markdown formatting for italics, bold, hyperlinks are available.

You can include images from the internet or your own computer.

A kitten

Two column format

mpg %>% count(class)
class n
2seater 5
compact 47
midsize 41
minivan 11
pickup 33
subcompact 35
suv 62

plot of chunk unnamed-chunk-6

Summary

  • I've shown a simple set of slides you can easily make using Rstudio and R markdown

  • Remember, you generally want to make your slides quite simple and use large text and images

  • You can use the formatting described in the lesson on reproducible reports to control how code and visualization are displayed

  • A link to the full code for these slides is provided in the detailed outline