Below is an example of an interactive map using the library ‘leaflet’.

The marks in the map are 32 breweries in Franconia, data extracted from the ‘breweries91’ dataset embedded in the library ‘leaflet’. Select a brewery by clicking, its name will be displayed.

library(leaflet)
data(breweries91)
location <- as.data.frame(breweries91@coords)
label <- breweries91$brewery
location %>% leaflet() %>% addTiles() %>% addMarkers(popup=label)