Learn R Programming

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

RgoogleMaps (version 1.1.9.15)

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 png OR ReadImages OR rimage installed ! png (default) 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,215

Version

1.1.9.15

License

GPL

Maintainer

Markus Loecher

Last Published

August 2nd, 2011

Functions in RgoogleMaps (1.1.9.15)

LatLon2XY.centered

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

translates an RGB image matrix to gray scale
mypolygon

simple wrapper function to plot colored polygons
GetMap.bbox

download a static map from the Google server
myplot.imagematrix

Plotting an imagematrix object
qbbox

computes bounding box
SPGDF2matrix

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

get static Map from the Google server
RgoogleMaps-package

Utilities to enable overlays on Google Maps
updateusr

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

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

plots text on map
PlotPolysOnStaticMap

plots polygons on map
GetMap

download a static map from the Google server
ReadMapTile

Reading a map tile object
LatLon2XY

computes the coordinate transformation from lat/lon to map tile coordinates
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
Tile2R

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

plots arrows or segments on map
PlotOnStaticMap

overlays plot on background image of map tile