Skip to content

Instantly share code, notes, and snippets.

@jonathanlxy
Created July 25, 2016 15:23
Show Gist options
  • Save jonathanlxy/d2c0af541d2aa531eb40219e09ba41cd to your computer and use it in GitHub Desktop.
Save jonathanlxy/d2c0af541d2aa531eb40219e09ba41cd to your computer and use it in GitHub Desktop.
Vision Zero Visualization Blog Post Gist
# 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