Introduction

This leaflet map has been created for the first project of the Coursera Developing Data Products course which is a part of the Johns Hopkins University Data Science Specialization.

This map shows the markers for the ten major Australian cities. The names of the cities can be displayed by clicking on the respective markers.

Ten Major Australian Cities

Loading the libraries and the dataset.

library(leaflet)
library(dplyr)
library(DAAG) # for aulatlong dataset
data("aulatlong")
aulatlong = rename(aulatlong, lng = latitude, lat = longitude)

Creating the leaflet map showing the ten major Australian cities. Click on the markers on the map to display the names of the cities.

map = aulatlong %>%
    leaflet() %>%
    addTiles() %>% 
    addMarkers(popup=rownames(aulatlong))
map