Created
November 6, 2021 18:27
-
-
Save zaynaib/0d8f9eb9e62f1c4a5965a2f6548db5ae to your computer and use it in GitHub Desktop.
Map of red light camera locations in Chicago
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
library("tidyverse") | |
library("ggmap") | |
redLight <- read.csv("speed-camera-locations.csv") | |
glimpse(redLight) | |
chicago <- c(lat=-87.6298,lat=41.8781) | |
chicago_map <- get_map(location = chicago, zoom=10) | |
ggmap(chicago_map) + | |
geom_point(aes(LONGITUDE,LATITUDE,color="red"),data=redLight) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dataset can be find at Kaggle : https://www.kaggle.com/chicago/chicago-red-light-and-speed-camera-data