https://github.com/paleolimbot/rosm
Plot Open Street Map and Other Tiles in R
https://github.com/paleolimbot/rosm
Last synced: 7 months ago
JSON representation
Plot Open Street Map and Other Tiles in R
- Host: GitHub
- URL: https://github.com/paleolimbot/rosm
- Owner: paleolimbot
- Created: 2015-10-12T17:29:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-08-27T01:22:26.000Z (about 2 years ago)
- Last Synced: 2025-04-15T21:52:44.439Z (7 months ago)
- Language: R
- Size: 9.59 MB
- Stars: 27
- Watchers: 4
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
- Awesome-Geospatial - ROSM - Plot Open Street Map and Other Tiles in R. (R)
README
---
title: "ROSM: Open Street Map tiles in R"
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
[](https://app.codecov.io/gh/paleolimbot/rosm?branch=master)
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)
```