Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anthonynorth/snapbox

Static mapbox basemap for ggplot2.
https://github.com/anthonynorth/snapbox

ggplot2 mapbox

Last synced: 3 months ago
JSON representation

Static mapbox basemap for ggplot2.

Awesome Lists containing this project

README

        



release


lifecycle


build


GitHub actions build status

snapbox


Static mapbox basemap for ggplot2.

## Installation

```r
remotes::install_github("anthonynorth/snapbox")
```

## Usage
```r
library(sf)
library(ggplot2)
library(snapbox)

area <- st_bbox(
c(xmin = 147, ymin = -43, xmax = 147.7, ymax = -42.65),
crs = 4326
)

ggplot() +
layer_mapbox(area, scale_ratio = 0.5)
```