knitr::opts_chunk$set(echo = TRUE) library(leaflet) 🌍 Introduction

Welcome to my interactive map webpage! This page was created using R Markdown and features an interactive Leaflet map that displays four world cities. # Create a small data frame of locations locations <- data.frame( name = c(“New Delhi, India 🇮🇳”, “New York City, USA 🇺🇸”, “Tokyo, Japan 🇯🇵”, “Paris, France 🇫🇷”), lat = c(28.6139, 40.7128, 35.6895, 48.8566), lng = c(77.2090, -74.0060, 139.6917, 2.3522) )

Build the interactive map

leaflet(locations) %>% addProviderTiles(providers$CartoDB.Positron) %>% setView(lng = 20, lat = 30, zoom = 2) %>% addCircleMarkers(~lng, ~lat, popup = ~name, label = ~name, radius = 8, color = “darkblue”, fillColor = “skyblue”, fillOpacity = 0.8) 📅 Date of Creation

The date above (r Sys.Date()) ensures that this document always shows the day it was generated — keeping it recent and valid under the assignment’s rubric.

🧠 About This Project

This webpage demonstrates how R Markdown and the Leaflet package can create rich, interactive web content directly from R. The map allows panning, zooming, and clicking on markers to view information about each city.