Learn R Programming

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

RgoogleMaps (version 1.1.9.3)

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

4,471

Version

1.1.9.3

License

GPL

Maintainer

Markus Loecher

Last Published

December 13th, 2010

Functions in RgoogleMaps (1.1.9.3)

myplot.imagematrix

Plotting an imagematrix object
GetMap.OSM

Query the Open Street Map server for map tiles instead of Google Maps
GetMap.bbox

download a static map from the Google server
RGB2GRAY

translates an RGB image matrix to gray scale
ReadMapTile

Reading a map tile object
LatLon2XY.centered

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

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

computes bounding box
mypolygon

simple wrapper function to plot colored polygons
Tile2R

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

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
RgoogleMaps-package

Utilities to enable overlays on Google Maps
PlotOnStaticMap

overlays plot on background image of map tile
GetMap

download a static map from the Google server
LatLon2XY

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

plots polygons on map
SPGDF2matrix

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

get static Map from the Google server