The goal of maplibregl
is to provide R bindings to
maplibre-gl-js.
You can install the released version of maplibregl from CRAN with:
install.packages("maplibregl")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("crazycapivara/maplibre-gl-r")
library(maplibregl)
map <- maplibregl(
center = c(-73.9165, 40.7114),
zoom = 10,
pitch = 30
)
if (interactive()) map