Background

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

Interactive Map with Leaflet

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

Map Features

This interactive map includes:

Code Explanation

The map was created using the leaflet package in R:

  1. leaflet() - Creates the base map object
  2. addTiles() - Adds the map tiles (the actual map imagery)
  3. addMarkers() - Adds clickable markers with popup text
  4. setView() - Sets the initial center point and zoom level

Customization Options

You can easily customize this map by:


This document was generated using R Markdown and the Leaflet package for interactive mapping.