Interactive Maps with 'Mapbox GL JS' and 'MapLibre GL JS'

Provides an interface to the 'Mapbox GL JS' (< https://docs.mapbox.com/mapbox-gl-js/guides>) and the 'MapLibre GL JS' (< https://maplibre.org/maplibre-gl-js/docs/>) interactive mapping libraries to help users create custom interactive maps in R. Users can create interactive globe visualizations; layer 'sf' objects to create filled maps, circle maps, 'heatmaps', and three-dimensional graphics; and customize map styles and views. The package also includes utilities to use 'Mapbox' and 'MapLibre' maps in 'Shiny' web applications.


mapgl mapgl website

The mapgl R package makes the latest versions of Mapbox GL JS and MapLibre GL JS available to R users. The package interface is designed to make the powerful capabilities of both libraries available in R mapping projects, but also feel similar to users coming from other R mapping packages.

Install from CRAN:

install.packages("mapgl")

Or, install the development version from GitHub:

remotes::install_github("walkerke/mapgl")

Read through these vignettes to learn how to use the package:

Recommended training and how to learn more

If you find this project useful in your work and would like to ensure continued development of the package, you can provide support in the following ways:

To stay on top of package updates / new features and to get information about mapgl trainings, be sure to sign up for the Walker Data mailing list here.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("mapgl")

0.5.2 by Kyle Walker, 5 days ago


https://walker-data.com/mapgl/


Report a bug at https://github.com/walkerke/mapgl/issues


Browse source code at https://github.com/cran/mapgl


Authors: Kyle Walker [aut, cre] , Egor Kotov [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports htmlwidgets, geojsonsf, sf, rlang, htmltools, grDevices, base64enc, terra, classInt, shiny, viridisLite, png, jsonlite, httpuv

Suggests chromote, knitr, mapboxapi, testthat, usethis, leaflet, withr


Imported by r5rgui, tmap.mapgl.

Suggested by BLSloadR, countryatlas, deckglgeoarrow, freestiler, geoidep, osrm.backend, spopt.


See at CRAN