knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

maplibregl

CRAN status R build status

The goal of maplibregl is to provide R bindings to maplibre-gl-js.

Installation

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")

Example

library(maplibregl)

map <- maplibregl(
  center = c(-73.9165, 40.7114),
  zoom = 10,
  pitch = 30
)

if (interactive()) map


crazycapivara/maplibre-gl-r documentation built on Dec. 19, 2021, 6:18 p.m.