-
-
Save abkosar/cb0343269d790c6319dbb51b06dbf82a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##########################TOTAL NUMBER OF MOTORIST DEATHS - BY ZIPCODES##################### | |
ZipCodes_Motorist <- select(ZipcodesGrouped, region, NUMBER.OF.MOTORIST.KILLED) %>% | |
summarise(sum(NUMBER.OF.MOTORIST.KILLED)) | |
ZipCodes_Motorist = ZipCodes_Motorist[-1] | |
colnames(ZipCodes_Motorist) = c("region", "value") | |
ZipCodes_Motorist$region = clean.zipcodes(ZipCodes_Motorist$region) ##integer to character | |
ZipCodes_Motorist = ZipCodes_Motorist[-which(is.na(ZipCodes_Motorist$region)), ] | |
ZipCodes_Motorist =ZipCodes_Motorist[!duplicated(ZipCodes_Motorist$region), ] | |
ZipCodes_Motorist = ZipCodes_Motorist[!ZipCodes_Motorist$region %in% c("11249", "10000", "10048", "10281", "11695"), ] | |
Total_Death_by_Zipcodes_Motorist <- zip_choropleth(ZipCodes_Motorist, zip_zoom=ZipCodes_Motorist$region, title = "Total Deaths Motorists by Zip Codes", legend = "Number of Total Deaths", num_colors = 7) | |
Total_Death_by_Zipcodes_Motorist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment