Introduction

This is a simple HTML page produced using R Markdown to show a leaflet map developed for the Developing Data Products course, Assignment 2. The map is focused on Denali (tallest mountain in North America) and features markers for a few other peaks around it. (I’ve kept it simple and haven’t added anything too fancy.)

Setup / Map Creation

library(leaflet)
mountains<-data.frame(lat = c(63.06916889844112, 62.975351097468916,
                           62.96523709102326, 62.95455305156149),
                   lng = c(-151.00698431611053, -150.6117126336178,
                          -151.399274455606, -151.0896294298269),
                   label = c("Denali", "Mooses Tooth", "Mt Foraker",
                             "Mt Hunter"))

mountains
       lat       lng        label
1 63.06917 -151.0070       Denali
2 62.97535 -150.6117 Mooses Tooth
3 62.96524 -151.3993   Mt Foraker
4 62.95455 -151.0896    Mt Hunter
my_map<-leaflet() %>%
    addTiles() %>%
    setView(lat=63.075, lng=-151.007, zoom=10) %>%
    addMarkers(lat=mountains$lat, lng=mountains$lng, label=mountains$label)

My Map