I am trying to overlay a density map on a street level map but unsure how to do it. I am using the opendata available on the police.uk website.
Each incident has a lat and long associated to it.
The code below gets me a density map.
`
#selecting columns we need
crimes <- dplyr::select(dataCrimesData, Crime.ID, Longitude, Latitude)
#plotting density map
ggplot(crimes, aes(Longitude, Latitude))+
stat_density_2d(aes(fill=..level..), geom="polygon")
` Result
I am able to draw maps with mapview()
that just plots the crimes by the lat,long but I want to overlay the above map on a street level map.