This post exposes some cartographic explorations of the OpenStreetMap (OSM) database with R.
These explorations begin with the downloading and the cleaning of OSM data. Then I propose a set of map visualizations of the spatial distributions of bars and restaurants in Paris. Of course, these examples could be adapted to other spatial contexts and thematics (e.g. pharmacies in Roma, bike parkings in Dublin…).
osmdata package from rOpenSci is used to download OSM data.
The cleaning is a rather manual task done thanks to the
Most of the mapping is done with
Interactive maps are handled with the
Smoothed maps are computed with