Instructions

Create a web page using R Markdown that features a map created with Leaflet.

Host your webpage on either GitHub Pages, RPubs, or NeoCities.

Your webpage must contain the date that you created the document, and it must contain a map created with Leaflet. We would love to see you show off your creativity!

#Loading the necessary packages

library(leaflet)

Just a map

just_a_map <- leaflet() %>% 
  addTiles()
just_a_map

Adding Markers

Puede agregar marcadores a su mapa uno por uno utilizando la addMarkers()función especificando la longitud y la latitud. ( Aquí hay un consejo si tiendes a mezclarlos). Puedes especificar texto emergente cuando hagas clic en el marcador con el popupargumento.

library(leaflet)
my_map_marker <- just_a_map %>%
  addMarkers(lat=6.2230767, lng=-75.5726401, 
             popup="This is a place marker")
my_map_marker