-
Notifications
You must be signed in to change notification settings - Fork 4
/
README.Rmd
42 lines (32 loc) · 1.14 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
title: "ROSM: Open Street Map tiles in R"
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
<!-- badges: start -->
[![Codecov test coverage](https://codecov.io/gh/paleolimbot/rosm/branch/master/graph/badge.svg)](https://app.codecov.io/gh/paleolimbot/rosm?branch=master)
<!-- badges: end -->
Download and plot [Open Street Map](https://www.openstreetmap.org/), [Bing Maps](https://www.bing.com/maps), and other tiled map sources. A previous version
of this package provided an API for plotting base maps; the new API is more
low-level and covers tile math, URL generation, and fetching tiles in parallel.
## Installation
The **rosm** package is [available on CRAN](https://cran.r-project.org/package=rosm), and can be installed using `install.packages("rosm")`.
## Example
```{r example}
library(rosm)
bounds <- wk::rct(
-7476083, 5349058,
-6594103, 6243203,
crs = osm_crs_native()
)
(grd <- osm_raster(bounds, osm_url_spec_example()))
plot(grd)
```