Learn R Programming

RgoogleMaps (version 1.5.1)

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

5,124

Version

1.5.1

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

November 6th, 2023

Functions in RgoogleMaps (1.5.1)

NYleukemia

Upstate New York Leukemia Data
qbbox

computes bounding box
sp_bbox

computes bounding box
SpatialToPBS

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

plots text on map
getGeoCode

geocoding utility
incidents

San Francisco crime data
genStaticMap

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

Transform longitude/latiude points to the Mercator projection.
columbus

Columbus OH spatial analysis data set
degreeAxis

axis with degrees
updateusr

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

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

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

plots a single OSM tile
XY2LatLon

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

easy to use wrapper function
osmtile_bbox

compute the bounding box of an OpenStreetmap tile
mypolygon

simple wrapper function to plot colored polygons
plotOSM

plots OSM map tiles
pennLC

Pennsylvania Lung Cancer
GetMap

download a static map from the Google server
LatLon2XY

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

GetMap bbox
ColorMap

Plot Levels of a Variable in a Colour-Coded Map
LatLon2XY.centered

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

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

get static Map from the Google server
PlotOnStaticMap

overlays plot on background image of map tile
PlotArrowsOnStaticMap

plots arrows or segments on map
ReadMapTile

Read a bitmap image stored in the PNG format
MaxZoom

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

translates an RGB image matrix to gray scale
PlotOnMapTiles

plots on map tiles by "stitching" them together
PlotPolysOnStaticMap

plots polygons on map