Learn R Programming

RgoogleMaps (version 1.5.3)

Overlays on Static Maps

Description

Serves two purposes: (i) Provide a comfortable R interface to query the Google server for static maps, and (ii) Use the map as a background image to overlay plots within R. This requires proper coordinate scaling.

Copy Link

Version

Install

install.packages('RgoogleMaps')

Monthly Downloads

2,653

Version

1.5.3

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Markus Loecher

Last Published

August 19th, 2025

Functions in RgoogleMaps (1.5.3)

NYleukemia

Upstate New York Leukemia Data
PlotOnMapTiles

plots on map tiles by "stitching" them together
PlotOnStaticMap

overlays plot on background image of map tile
PlotArrowsOnStaticMap

plots arrows or segments on map
NumTiles

computes the necessary number of tiles from a bounding box and a zoom level
RGB2GRAY

translates an RGB image matrix to gray scale
ReadMapTile

Read a bitmap image stored in the PNG format
PlotPolysOnStaticMap

plots polygons on map
MapBackground

get static Map from the Google server
MaxZoom

computes the maximum zoom level which will contain the given lat/lon range
genStaticMap

generates a "static map" from map tiles by "stitching" them together
TextOnStaticMap

plots text on map
SpatialToPBS

converts spatial objects as defined in package sp to simpler PBSmapping type dataframes
columbus

Columbus OH spatial analysis data set
getGeoCode

geocoding utility
Tile2R

simple utility to offset and scale XY coordinates with respect to the center
degreeAxis

axis with degrees
XY2LatLon

computes the centered coordinate transformation from lat/lon to map tile coordinates
geosphere_mercator

Transform longitude/latiude points to the Mercator projection.
incidents

San Francisco crime data
mypolygon

simple wrapper function to plot colored polygons
sp_bbox

computes bounding box
qbbox

computes bounding box
plotOSMtile

plots a single OSM tile
osmtile_bbox

compute the bounding box of an OpenStreetmap tile
plotmap

easy to use wrapper function
updateusr

Updates the 'usr' coordinates in the current plot.
plotOSM

plots OSM map tiles
pennLC

Pennsylvania Lung Cancer
AddAlpha

add alpha level to color that lacks one
IdentifyPoints

identify points by clicking on map
LatLon2XY

computes the coordinate transformation from lat/lon to map tile coordinates
ColorMap

Plot Levels of a Variable in a Colour-Coded Map
GetMap.bbox

GetMap bbox
GetBingMap

download a static map from the Microsoft map tile server
GetOsmMap

Query the Open Street Map server for map tiles instead of Google Maps
LatLon2XY.centered

computes the centered coordinate transformation from lat/lon to map tile coordinates
GetMapTiles

download map tiles from specified map tile servers such as openstreetmap or Google
GetMap

download a static map from the Google server