Plot Raster Map Tiles from Open Street Map and Other Sources

Download and plot Open Street Map < http://www.openstreetmap.org/>, Bing Maps < http://www.bing.com/maps> and other tiled map sources. Use to create basemaps quickly and add hillshade to vector-based maps.


Travis build status Coverage status

Download and plot Open Street Map, Bing Maps, and other tiled map sources. Use to create high-resolution basemaps and add hillshade to vector based maps. Note that rosm uses base plotting and not ggplot2: for mapping in ggplot2, use ggspatial::annotation_map_tile().

Installation

The rosm package is available on CRAN, and can be installed using install.packages("rosm").

Example

library(prettymapr)
library(rosm)
altalake <- makebbox(50.1232, -122.9574, 50.1035, -123.0042)
prettymap({
  # plot tiles (see also osm.raster() and bmaps.plot())
  osm.plot(altalake)
  osm.points(c(-122.9841, -122.9812), c(50.11055, 50.11765), 
             pch=15, cex=0.6, col="white")
  osm.text(c(-122.9841, -122.9812), c(50.11055, 50.11765), 
           labels=c("GC6", "GC2"), adj=c(-0.2, 0.5), cex=0.7, col="white")
}, scale.label.col = "white")

The Future?

Some other great projects have popped up in the last few years, such that rosm will probably be retired in the next year. Packages that depend on will continue to work, but it is likely that a new API will pop up under a different name.

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rosm")

0.2.5 by Dewey Dunnington, 5 months ago


https://github.com/paleolimbot/rosm


Report a bug at https://github.com/paleolimbot/rosm/issues


Browse source code at https://github.com/cran/rosm


Authors: Dewey Dunnington [aut, cre] , Timothée Giraud [ctb]


Documentation:   PDF Manual  


GPL-2 license


Imports curl, abind, jpeg, png, sp, rgdal, rjson, methods, plyr, prettymapr, tools

Suggests cartography, raster, testthat, covr, withr, knitr, rmarkdown


Imported by GADMTools, cartography, ggspatial.

Suggested by nhdplusTools, prettymapr.


See at CRAN