Leaflet supports interactive maps in JavaScript and can be used from R applications.

rstudio.github.io/leaflet
leaflet homepage screenshot

About leaflet

Leaflet is an R package that provides an interface to the Leaflet JavaScript library for interactive maps. It uses the htmlwidgets package to create and customize maps from R, including adding tile layers, setting a view by coordinates and zoom level, and adding popups.

Maps can be used directly from the R console, from RStudio, in Shiny applications and R Markdown documents. The package can be installed from CRAN, with a development version available from GitHub.

Key features

  • Create interactive Leaflet maps directly from R code
  • Add default OSM tile layer to maps
  • Set map center and zoom with coordinates
  • Add popups with text at specific locations
  • Use maps in Shiny applications and R Markdown
  • Use maps from R console and RStudio
Best for: R users who need to create interactive web maps for analysis, apps, or documents.
Good for
  • Based on open-source Leaflet JavaScript library
  • Works from R console, RStudio, Shiny, and R Markdown
  • Available from CRAN with development version on GitHub

leaflet at a glance

Type
Website
Pricing
Not confirmed. Check the site
Platforms
Web
Open source
Not stated
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

leaflet alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Charts & Data Visualization

Well-known listings from the same topic.

All 90

leaflet FAQ

How can the package be installed?
Install the CRAN version with install.packages('leaflet'), or the development version with devtools::install_github('rstudio/leaflet').
Where can the maps be used?
Maps can be used directly from the R console, from RStudio, in Shiny applications and R Markdown documents.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing