forked from dpmcsuss/ma415-lecture-03-covid-vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lecture-03-covid-vis.qmd
44 lines (33 loc) · 1.55 KB
/
lecture-03-covid-vis.qmd
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
---
title: "Week 02: COVID Visualization Activity"
date: "September, 11 2023"
author: "**`[[`**Your Name**`]]`**"
format: gfm
---
Today, we'll be working with a data set related to COVID.
This data is based on data from the the [COVID Tracking Project](https://covidtracking.com/).
I cleaned up this data and also added total populations from the 2020 for each of the relevant categories.
Note, due to differences in the way race and ethnicity are encoded in the census as compared to the the COVID Tracking Project, the population counts for LatinX may be somewhat inaccurate.
```{r load_data}
library(tidyverse)
load("CRDT Data.RData")
ls()
```
I've include 4 different data sets.
They all have the same data but have it represented in different ways.
Try using the different data sets and see which ones are good for making which plots.
```{r first_plot}
ggplot(covid_data_count, aes(x = date, y = Cases)) + geom_point()
```
If you want to only look at a specific state, you can do it like this.
For now, see what you can do just using `ggplot`.
```{r}
covid_data_count |>
filter(state == "MA") |>
ggplot(aes(x = date, y = Cases, color = race)) + geom_line()
```
1. After making and refining some plots, pick one and save the code and describe what you observe?
2. What conclusions can you draw?
3. What were you not able to do due to not having the coding knowledge?
4. What made previous plots you made hard to interpret/understand? What did you do to improve/change them to ease interpretation?
5. What other data would be useful to better understand this data?