-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.Rmd
121 lines (85 loc) · 8.32 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
title: "36-315: Statistical Graphics & Visualization"
# author:
# - name: Meghan Hall
# url: https://meghan.rbind.io
# affiliation: Carnegie Mellon University
#date: "`r Sys.Date()`"
description: |
A companion website for the summer 2021 version of Carnegie Mellon University course 36-315: Statistical Graphics & Visualization, offered through the Department of Statistics & Data Science and taught by Meghan Hall.
site: distill::distill_website
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
## Course Objectives
This course introduces the most common forms of graphical displays along with their uses and misuses. Students will learn how to create these displays, how to understand them, and how to distinguish when and where particular graphics are appropriate. This course uses R, RStudio, `ggplot2` and its extensions, and R Markdown.
Specific objectives:
1. Create statistical graphics.
2. Understand the fundamentals of data and reproducible data analysis.
3. Write about statistical graphics.
4. Speak about statistical graphics and data analyses.
5. Assess and critique statistical graphics.
## Lectures
Lecture slides are available below in html format, and the .Rmd files are linked from GitHub.
| Lecture | Topic | html | Rmd |
|---------|------------------------------------------------|------|------|
| 1 | intro and why data viz | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec1#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec1.Rmd) |
| 2 | the grammar of graphics | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec2#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec2.Rmd)|
| 3 | bar graphs | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec3#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec3.Rmd)|
| 4 | visualizing distributions | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec4#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec4.Rmd)|
| 5 | line graphs & working with time | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec5#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec5.Rmd)|
| 6 | scatter plots & relational data | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec6#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec6.Rmd)|
| 7 | grab bag (pie charts, heat maps, maps) | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec7#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec7.Rmd)|
| 8 | taking plots to the next level | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec8#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec8.Rmd)|
| 9 | colors, fonts, annotations, themes | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec9#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec9.Rmd)|
| 10 | extensions to `ggplot2` | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec10#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec10.Rmd)|
| 11 | midterm review | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec11#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec11.Rmd)|
| 12 | model output visualizations from `tidymodels` & user-defined functions | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec12#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec12.Rmd)|
| 13 | text analysis with `tidytext` and tables with `kableExtra` | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec13#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec13.Rmd)|
| 13 | tables with `gt` and `gtsummary` | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec13_addl) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec13_addl.Rmd)|
| 14 | presentations with `xaringan` | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec14#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec14.Rmd)|
| 15 | animation with `gganimate`, interactivity with `plotly`, and iteration with `purrr` | [`r icons::fontawesome$solid$laptop`](https://cmu-36315.netlify.app/slides/36-315_summer2021_lec15#1) | [`r icons::fontawesome$brands$github`](https://github.com/meghall06/CMU-36-315-site/blob/main/slides/36-315_Summer2021_Lec15.Rmd)|
## Labs
Lab slides are available below in html format, and the .Rmd files are available at the GitHub repo linked in the nav bar above.
+ [Lab 1](slides/36-315_Summer2021_Lab1_lec.html)
+ [Lab 2](slides/36-315_Summer2021_Lab2_lec.html)
+ [Lab 3](slides/36-315_Summer2021_Lab3_lec.html)
+ [Lab 4](slides/36-315_Summer2021_Lab4_lec.html)
+ [Lab 5](slides/36-315_Summer2021_Lab5_lec.html)
+ [Lab 6](slides/36-315_Summer2021_Lab6_lec.html)
+ [Lab 8](slides/36-315_Summer2021_Lab8_lec.html)
## Resources
### Data Visualization
+ Fundamentals of Data Visualization: <https://clauswilke.com/dataviz/index.html>
+ Data Visualization: A Practical Introduction: <https://socviz.co/index.html#preface>
### The tidyverse
+ Best resource for overall analysis in R using the tidyverse: <https://r4ds.had.co.nz/>
### `ggplot2`
+ `ggplot2` book: <https://ggplot2-book.org/>
+ The `ggplot2` cheatsheet: <https://www.maths.usyd.edu.au/u/UG/SM/STAT3022/r/current/Misc/data-visualization-2.1.pdf>
+ Details of various charts made in R: <https://www.r-graph-gallery.com/index.html>
+ Creating custom themes: <https://themockup.blog/posts/2020-12-26-creating-and-using-custom-ggplot2-themes/>
+ R Graphics cookbook: <https://r-graphics.org/>
+ A guide to various scales: <https://ggplot2tor.com/scales>
### R Markdown
+ The definitive guide to R Markdown: <https://bookdown.org/yihui/rmarkdown/>
+ R Markdown reference guide: <https://www.rstudio.com/wp-content/uploads/2015/03/rmarkdown-reference.pdf>
+ R Markdown cheat sheet: <https://www.rstudio.com/wp-content/uploads/2015/02/rmarkdown-cheatsheet.pdf>
## Acknowledgments {.appendix}
This website is made with the [distill package](https://rstudio.github.io/distill/). Many thanks to [Alison Hill](https://alison.rbind.io/) and [Desirée De Leon](https://desiree.rbind.io/) and their [Teaching in Production](https://rstudio-education.github.io/teaching-in-production/) website, which provided the inspiration for this site. Also thanks to Tom Mock for his enormously helpful [introduction to distill](https://themockup.blog/posts/2020-08-01-building-a-blog-with-distill/).
```{r, include=FALSE, results='asis'}
library(metathis)
meta() %>%
meta_social(
title = "CMU 36-315",
description = "Course website for Statistical Graphics & Visualization, by Meghan Hall",
url = "https://cmu-36315.netlify.app/",
image = "https://raw.githubusercontent.com/meghall06/CMU-36-315-site/main/icon-192.png",
image_alt = "CMU 36-315",
og_type = "website",
og_author = "Meghan Hall",
twitter_card_type = "summary",
twitter_creator = "@meghanmhall"
)
```