Learn R Programming

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

RgoogleMaps (version 1.1.9.7)

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.9.7

License

GPL

Maintainer

Markus Loecher

Last Published

May 13th, 2011

Functions in RgoogleMaps (1.1.9.7)

GetMap.OSM

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

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

translates an RGB image matrix to gray scale
LatLon2XY.centered

computes the centered 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
RgoogleMaps-package

Utilities to enable overlays on Google Maps
PlotArrowsOnStaticMap

plots arrows or segments on map
mypolygon

simple wrapper function to plot colored polygons
GetMap

download a static map from the Google server
SPGDF2matrix

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

Reading a map tile object
Tile2R

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

overlays plot on background image of map tile
qbbox

computes bounding box
MapBackground

get static Map from the Google server
LatLon2XY

computes the coordinate transformation from lat/lon to map tile coordinates
GetMap.bbox

download a static map from the Google server
PlotPolysOnStaticMap

plots polygons on map
myplot.imagematrix

Plotting an imagematrix object