Getting started with R and RStudio

Lewis A. Jones
Erin M. Dillon

2026-10-23

Introduction

  • a bullet summary for the slide
  • which would be redundant on the page

One plot per slide

plot(mtcars$wt, mtcars$mpg)

One plot per slide

plot(mtcars$hp, mtcars$mpg)

Deeper headings

A sub-heading

Building up a slide

x <- mtcars$wt
mean(x)
[1] 3.21725

Building up a slide

x <- mtcars$wt
mean(x)
[1] 3.21725
round(sd(x), 3)
[1] 0.978

Callouts

A note

This box is dropped on the slide, which lets a figure inside it stretch to fit.

Callouts

An exercise solution

A collapsed callout is the exception: it keeps its box. Since clicking on slides can be awkward, the collapsed content is held back as a fragment and revealed when you advance. On the website it stays a click-to-open box.

More info