Plot Raster Map Tiles from Open Street Map and Other Sources

Download and plot Open Street Map <>, Bing 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().


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


altalake <- makebbox(50.1232, -122.9574, 50.1035, -123.0042)
  # plot tiles (see also osm.raster() and bmaps.plot())
  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.


Reference manual

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


0.2.5 by Dewey Dunnington, a year ago

Report a bug at

Browse source code at

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, ggspatial, nhdplusTools.

Suggested by prettymapr.

See at CRAN