class: center, middle, inverse, title-slide # Class 2 Intro to Working with Data: for loops, Rstudio proj, tidy data, ggplot intro ## R Programming ### Jessica Minnier ### 2022-01-11 --- # Class 2 - Muddiest/clearest points - Some details * Youtube video (on website) vs. zoom video link (in slack) - Go back to for loops from Class 1 Rmd * another example * `print()`-ing what's going on - Function of the week * Open new project in existing folder * Sign up sheet and details - Class 2 Rproj/Rmd * Rstudio projects and file paths * Importing data * Tidy data * Ggplot *__intro__* (advanced stuff later) - Assignment 2 due date depends on how far we get today --- class: center, middle # For Loops --- <img src = "image/week2/for_loop1.jpg" width = 800> --- <img src = "image/week2/for_loop2.jpg" width = 800> --- <img src = "image/week2/for_loop3.jpg" width = 800> --- <img src = "image/week2/for_loop.jpg" width = 800> [Image from Allison Horst](https://github.com/allisonhorst/stats-illustrations) --- class: center, middle # Paths and Projects --- <img src = "image/week2/rstudio_proj_pic.png" width = 900> --- class: center, middle # Tidy Data --- <img src = "image/week2/tidydata_1.jpg" width = 800> [Image from Allison Horst](https://github.com/allisonhorst/stats-illustrations) --- <img src = "image/week2/tidydata_2.jpg" width = 800> [Image from Allison Horst](https://github.com/allisonhorst/stats-illustrations) --- class: center, middle # ggplot2 slides --- <img src = "image/week2/ggplot2_exploratory.png" width = 600> [Image from Allison Horst](https://github.com/allisonhorst/stats-illustrations) --- <img src = "image/week2/khealy_ggplot1_part1.jpg" width = 700> Image from Kieran Healy