Introduction to leaflet package

Kidist Gondel

05/02/2022

Introduction

leaflet is one of R package that is used to create dynamic maps.It is most popular open source java script library for interactive maps. This package makes it easy to integrate and control leaflet maps in R.

library(leaflet)
## Warning: package 'leaflet' was built under R version 4.1.3
m <- leaflet() %>%
  addTiles() %>%  # Add default OpenStreetMap map tiles
  addMarkers(lng=174.768, lat=-36.852, popup="The birthplace of R")
m  # Print the map