This webpage was created using R Markdown and features an interactive map created with Leaflet. The assignment requires creating a web page with a map and hosting it on GitHub Pages, RPubs, or NeoCities.
Document created on: 2025-09-28
Below is an interactive map showing some interesting locations around the world:
library(leaflet)
# Create a leaflet map
my_map <- leaflet() %>%
addTiles() %>% # Add default OpenStreetMap tiles
# Add markers for different locations
addMarkers(lat = 40.7589, lng = -73.9851,
popup = "Times Square, New YorkThe Crossroads of the World") %>%
addMarkers(lat = 48.8566, lng = 2.3522,
popup = "Paris, FranceCity of Light") %>%
addMarkers(lat = 35.6762, lng = 139.6503,
popup = "Tokyo, JapanLand of the Rising Sun") %>%
addMarkers(lat = -33.8688, lng = 151.2093,
popup = "Sydney, AustraliaHarbor City") %>%
addMarkers(lat = 51.5074, lng = -0.1278,
popup = "London, EnglandThe Big Smoke") %>%
# Set the view to center on the world
setView(lng = 0, lat = 20, zoom = 2)
# Display the map
my_map
This interactive map includes:
The map was created using the leaflet package in R:
leaflet() - Creates the base map objectaddTiles() - Adds the map tiles (the actual map
imagery)addMarkers() - Adds clickable markers with popup
textsetView() - Sets the initial center point and zoom
levelYou can easily customize this map by:
This document was generated using R Markdown and the Leaflet package for interactive mapping.