Learn R Programming

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

RgoogleMaps (version 1.0)

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.

Copy Link

Version

Install

install.packages('RgoogleMaps')

Monthly Downloads

4,471

Version

1.0

License

GPL

Maintainer

Markus Loecher

Last Published

May 7th, 2009

Functions in RgoogleMaps (1.0)

mypolygon

simple wrapper function to plot colored polygons
RGB2GRAY

translates an RGB image matrix to gray scale
MapBackground

get static Map from the Google server
GetMap

download a static map from the Google server
updateusr

Updates the 'usr' coordinates in the current plot.
GetMap.bbox

download a static map from the Google server
qbbox

computes bounding box
Tile2R

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

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

overlays plot on background image of map tile
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
PlotPolysOnStaticMap

plots polygons on map
RgoogleMaps-package

Utilities to enable overlays on Google Maps