Learn R Programming

⚠️There's a newer version (1.5.3) of this package.Take me there.

RgoogleMaps (version 1.1.8)

Overlays on Google map tiles in R

Description

This package 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. NOTE: To do anything but downloading static map tiles, RgoogleMaps needs EITHER rgdal OR ReadImages OR rimage installed ! Such an OR dependency is difficult to express in the Depends field, so I moved those packages to suggested. rgdal is your package if you prefer png file format and ReadImages or rimage if you prefer jpg format. In the latter cases, you will also need the libjpeg library installed.

Copy Link

Version

Install

install.packages('RgoogleMaps')

Monthly Downloads

3,122

Version

1.1.8

License

GPL

Maintainer

Markus Loecher

Last Published

February 11th, 2010

Functions in RgoogleMaps (1.1.8)

GetMap.OSM

Query the Open Street Map server for map tiles instead of Google Maps
XY2LatLon

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

computes bounding box
PlotOnStaticMap

overlays plot on background image of map tile
GetMap.bbox

download a static map from the Google server
mypolygon

simple wrapper function to plot colored polygons
LatLon2XY

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

image gridded spatial data, or convert to format for image
ReadMapTile

Reading a map tile object
myplot.imagematrix

Plotting an imagematrix object
RGB2GRAY

translates an RGB image matrix to gray scale
Tile2R

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

plots polygons on map
LatLon2XY.centered

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

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

download a static map from the Google server
MapBackground

get static Map from the Google server
updateusr

Updates the 'usr' coordinates in the current plot.
RgoogleMaps-package

Utilities to enable overlays on Google Maps