-
-
Save jonathanlxy/d2c0af541d2aa531eb40219e09ba41cd to your computer and use it in GitHub Desktop.
Vision Zero Visualization Blog Post Gist
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
# Top Locations with most deaths | |
ggmap(nyc_map, extent = 'device') + | |
geom_point(data = mvc_dth, | |
aes(x = LON, y = LAT, | |
size = KILLED_V, | |
fill = KILLED_V), | |
shape = 21, alpha = .5) + | |
scale_size_area(max_size = 10) + | |
scale_fill_continuous(low = 'yellow', high = 'red') + | |
geom_text(data = mvc_dth, | |
aes(x = LON, y = LAT, label = KILLED_V), | |
size = 4, check_overlap = T, fontface = "bold") + | |
theme(legend.position = 'none') + | |
ggtitle('Deadlist Locations July 2012 - June 2016') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment