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.

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:
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.