You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tutorial covers an overview of [Analyzing US Census Data](https://walker-data.com/census-r/index.html) by Kyle Walker. You will learn about using the [**tidycensus**] package for collecting, interacting, and plotting US Census data. You will mainly focus on collecting data from the Decennial Census and the American Community Survey (ACS).
79
79
80
-
<!-- DK: Do the repo -> project -> quarto stuff. AP: Done -->
81
-
82
80
### Exercise 1
83
81
84
82
Create a Github repo called `tidycensus-plots`. Make sure to click the "Add a README file" check box.
@@ -169,7 +167,8 @@ This is how professionals work, they type code in the quarto document and send i
169
167
170
168
## Texas Income
171
169
172
-
<!-- DK? Tell me what I am going to learn. AP: Done -->
170
+
<!-- DK: Clean up as we discussed. No wasted words. -->
171
+
173
172
A critical part of the Census data analysis process is data visualization, where an analyst examines patterns and trends found in their data graphically. This first section illustrates some examples for getting started with exploratory Census data visualization with [ggplot2](https://ggplot2.tidyverse.org/). You will be using the `get_acs()` and the `geom_sf()` functions as well.
174
173
175
174
@@ -206,6 +205,9 @@ income_tx <- get_acs(
206
205
)
207
206
````
208
207
208
+
###
209
+
210
+
209
211
### Exercise 2
210
212
211
213
Copy and paste our code to replace it with what you have.
@@ -234,7 +236,7 @@ question_text(NULL,
234
236
235
237
### Exercise 3
236
238
237
-
Using our code, set `geometry = TRUE`.
239
+
Edit your QMD, to change the value of `geometry` to `TRUE`.
238
240
239
241
Take your code chunk and do `Ctrl/Cmd + Enter` to send it to the Console.
240
242
@@ -258,20 +260,25 @@ question_text(NULL,
258
260
###
259
261
260
262
````
261
-
income_tx <- get_acs(
262
-
geography = "county",
263
-
variables = "B19013_001",
264
-
state = "TX",
265
-
year = 2020,
266
-
geometry = TRUE
267
-
)
263
+
> income_tx <- get_acs(
264
+
+ geography = "county",
265
+
+ variables = "B19013_001",
266
+
+ state = "TX",
267
+
+ year = 2020,
268
+
+ geometry = TRUE
269
+
+ )
270
+
Getting data from the 2016-2020 5-year ACS
271
+
Downloading feature geometry from the Census website. To cache shapefiles for use in future sessions, set `options(tigris_use_cache = TRUE)`.
0 commit comments