Skip to content

Commit

Permalink
case study 11 update
Browse files Browse the repository at this point in the history
  • Loading branch information
yingzhou95 committed Dec 12, 2024
1 parent bf854a2 commit dc45934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions week_11/CS_11.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ getDoParWorkers() # check registered cores

# load the tidycensus and read the oersonal key to use api
library(tidycensus)
census_api_key("60986de2c2c33c7beb144d5aed62a15407826fd9")
census_api_key("MY CENSUS API KEY")

#read all the data into the race_vars
race_vars <- c(
Expand Down Expand Up @@ -56,5 +56,5 @@ erie_cropped_filtered <- foreach(race = levels(erie_cropped$variable), .combine
mutate(variable = race) # add a column for the racial group
}

# map it
# map the points
mapview(erie_cropped_filtered, zcol = "variable", cex = 2)

0 comments on commit dc45934

Please sign in to comment.