knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.