Learn R Programming

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

RgoogleMaps (version 1.4.5.3)

Overlays on Static Maps

Description

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,664

Version

1.4.5.3

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 12th, 2020

Functions in RgoogleMaps (1.4.5.3)

NumTiles

computes the necessary number of tiles from a bounding box and a zoom level
PlotPolysOnStaticMap

plots polygons on map
genStaticMap

generates a "static map" from map tiles by "stitching" them together
PlotArrowsOnStaticMap

plots arrows or segments on map
plotmap

easy to use wrapper function
LatLon2XY.centered

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

Transform longitude/latiude points to the Mercator projection.
plotOSMtile

plots a single OSM tile
MapBackground

get static Map from the Google server
ColorMap

Plot Levels of a Variable in a Colour-Coded Map
RGB2GRAY

translates an RGB image matrix to gray scale
columbus

Columbus OH spatial analysis data set
PlotOnMapTiles

plots on map tiles by "stitching" them together
mypolygon

simple wrapper function to plot colored polygons
osmtile_bbox

compute the bounding box of an OpenStreetmap tile
degreeAxis

axis with degrees
SpatialToPBS

converts spatial objects as defined in package sp to simpler PBSmapping type dataframes
incidents

San Francisco crime data
ReadMapTile

Read a bitmap image stored in the PNG format
getGeoCode

geocoding utility
PlotOnStaticMap

overlays plot on background image of map tile
XY2LatLon

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

Create a bubble plot of spatial data on Google Maps
MaxZoom

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

computes bounding box
NYleukemia

Upstate New York Leukemia Data
TextOnStaticMap

plots text on map
Tile2R

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

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

Pennsylvania Lung Cancer
plotOSM

plots OSM map tiles
GetMap

download a static map from the Google server
GetMap.bbox

GetMap bbox
GetMapTiles

download map tiles from specified map tile servers such as openstreetmap or Google
DF2SpatialPointsDataFrame

change data.frame to SpatialPointsDataFrame
AddAlpha

add alpha level to color that lacks one
GetOsmMap

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

identify points by clicking on map
GetBingMap

download a static map from the Microsoft map tile server
LatLon2XY

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