For the R Markdown and Leaflet assignment I decided to plot the location of each of the ten highest peaks in the Irish Republic. The data was obtained from http://www.geonames.org/IE/highest-mountains-in-ireland.html. The code used to generate the leaflet map is shown below. As many of the peaks are located in the south west clusterOptions were invoked. Please interact with the map and click on individual peaks to find out their names and elevation.
library(leaflet)
Irish_mountains <- data.frame(
Name = c("Carrauntoohill", "Beenkeragh", "Caher", "Brandon", "Lugnaquillia",
"Galtymore", "Holywell Hill", "Baurtregaun", "Skregmore", "Mullaghcleevaun"),
lat = c(51.999, 52.006, 51.994, 52.236, 52.966, 52.366, 54.999, 52.209, 52.013, 53.101),
lng = c(-9.743, -9.746, -9.763, -10.256, -6.465, -8.174, -7.403, -9.831, -9.76, -6.408),
elv = c("1038m", "1010m", "1001m", "953m", "926m", "919m", "859m", "851m", "850m", "849m")
)
Irish_mountains %>%
leaflet() %>%
addTiles() %>%
addMarkers(popup = paste(Irish_mountains$Name, ":", Irish_mountains$elv), clusterOptions = markerClusterOptions())