Part 1

Part 2

Part 3: Your turn!

Using any data besides gapminder, create any animation you want (besides the ones I’ve included here). Your animations can be similar to Examples 1 and 2, but should include changes beyond plugging in different variables to the aes calls.

Everybody should submit an .rmd file with your animation. You should also turn in an HTML document (via RPubs) or use anim_save() to save your animation and turn it in alongside your .rmd file:

anim_save(FILENAME, animation = last_animation())

(for more info, use ?anim_save)

The data in these plots comes from The Integrated Postsecondary Education Data System (IPEDS). Specifically, the 2017 Complete Data files.

The static plot

## 
## ── Column specification ────────────────────────────────────────────────────────
## cols(
##   .default = col_double(),
##   XHRTOTLT = col_character(),
##   XHRTOTLM = col_character(),
##   XHRTOTLW = col_character(),
##   XHRAIANT = col_character(),
##   XHRAIANM = col_character(),
##   XHRAIANW = col_character(),
##   XHRASIAT = col_character(),
##   XHRASIAM = col_character(),
##   XHRASIAW = col_character(),
##   XHRBKAAT = col_character(),
##   XHRBKAAM = col_character(),
##   XHRBKAAW = col_character(),
##   XHRHISPT = col_character(),
##   XHRHISPM = col_character(),
##   XHRHISPW = col_character(),
##   XHRNHPIT = col_character(),
##   XHRNHPIM = col_character(),
##   XHRNHPIW = col_character(),
##   XHRWHITT = col_character(),
##   XHRWHITM = col_character()
##   # ... with 10 more columns
## )
## ℹ Use `spec()` for the full column specifications.

A static plot

Animate it!

Make the same plot but for Swarthmore.