Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/anthonynorth/snapbox
- Owner: anthonynorth
- License: mit
- Created: 2020-07-01T04:05:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-31T10:05:41.000Z (over 2 years ago)
- Last Synced: 2024-05-21T01:14:15.077Z (6 months ago)
- Topics: ggplot2, mapbox
- Language: R
- Homepage:
- Size: 339 KB
- Stars: 41
- Watchers: 5
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - anthonynorth/snapbox - Static mapbox basemap for ggplot2. (R)
README
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)
```