Bike theft map exercise

A quick mapping of London bike thefts for August 2023, written on 23/10/2023 for the data products course on Coursera, adapting instructions from https://www.linkedin.com/pulse/using-r-leaflet-package-map-bicycle-theft-london-nicholas-georgiou/ , written by Nicholas Georgiou.

#install.packages("leaflet")
library(leaflet)
library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
crimedata <- read.csv("C:/Users/Anton/Documents/Drive/extra studies/R/datasciencecoursera/data prods/2023-08-city-of-london-street.csv") %>% 
        select(Longitude, Latitude, Crime.type) %>%
        filter(Crime.type == "Bicycle theft")

map <-leaflet(crimedata) %>%
  addTiles() %>%
  addMarkers(lng=~Longitude,
             lat=~Latitude)
## Warning in validateCoords(lng, lat, funcName): Data contains 5 rows with either
## missing or invalid lat/lon values and will be ignored
map