Skip to content

Instantly share code, notes, and snippets.

Created August 4, 2016 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/95a7ab90b9d94e1dda401e8e4b135051 to your computer and use it in GitHub Desktop.
Save anonymous/95a7ab90b9d94e1dda401e8e4b135051 to your computer and use it in GitHub Desktop.
Create choropleth map
data(df_pop_county)
ny_choro <- df_pop_county[1829:1890,]
ny_choro$value <- (subset(crime$Density.sq.mi, Year==2000))
county_choropleth(ny_choro,
title = "New York Population Density by County",
legend = "Density",
num_colors = 1,
state_zoom = c("new york"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment