Skip to content

Commit d232ab5

Browse files
committed
post meeting
1 parent e42d02f commit d232ab5

1 file changed

Lines changed: 20 additions & 19 deletions

File tree

inst/tutorials/99-overview/tutorial.Rmd

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ options(tutorial.exercise.timelimit = 600,
7777

7878
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).
7979

80-
<!-- DK: Do the repo -> project -> quarto stuff. AP: Done -->
81-
8280
### Exercise 1
8381

8482
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
169167

170168
## Texas Income
171169

172-
<!-- DK? Tell me what I am going to learn. AP: Done -->
170+
<!-- DK: Clean up as we discussed. No wasted words. -->
171+
173172
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.
174173

175174

@@ -206,6 +205,9 @@ income_tx <- get_acs(
206205
)
207206
````
208207

208+
###
209+
210+
209211
### Exercise 2
210212

211213
Copy and paste our code to replace it with what you have.
@@ -234,7 +236,7 @@ question_text(NULL,
234236

235237
### Exercise 3
236238

237-
Using our code, set `geometry = TRUE`.
239+
Edit your QMD, to change the value of `geometry` to `TRUE`.
238240

239241
Take your code chunk and do `Ctrl/Cmd + Enter` to send it to the Console.
240242

@@ -258,20 +260,25 @@ question_text(NULL,
258260
###
259261

260262
````
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)`.
272+
Using FIPS code '48' for state 'TX'
273+
|========================================================================================================================| 100%
274+
>
268275
````
269276

270277
The `geometry = TRUE` argument returns spatial polygons, useful for maps and spatial analysis.
271278

272279
### Exercise 4
273280

274-
Let's explore the data, run `glimpse(income_tx)` in the console.
281+
Run `glimpse()` on `income_tx` in the Console.
275282

276283
CP/CR.
277284

@@ -288,8 +295,6 @@ question_text(NULL,
288295

289296
### Exercise 5
290297

291-
Let's get some quick stats for each column of the data.
292-
293298
Run `summary(income_tx)` in the console.
294299

295300
CP/CR.
@@ -306,16 +311,12 @@ question_text(NULL,
306311

307312
###
308313

309-
314+
<!-- DK: Chance to define the estimate and moe. -->
310315

311316

312317

313318
### Exercise 6
314319

315-
Use AI to generate code that creates a plot of median household income in Texas counties.
316-
317-
Send our code to the console from the previous exercise.
318-
319320
Now, type `income_tx` in the console.
320321

321322
CP/CR the first few lines.

0 commit comments

Comments
 (0)