Package: RgoogleMaps 1.5.1

RgoogleMaps: Overlays on Static Maps

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.

Authors:Markus Loecher

RgoogleMaps_1.5.1.tar.gz
RgoogleMaps_1.5.1.zip(r-4.5)RgoogleMaps_1.5.1.zip(r-4.4)RgoogleMaps_1.5.1.zip(r-4.3)
RgoogleMaps_1.5.1.tgz(r-4.4-any)RgoogleMaps_1.5.1.tgz(r-4.3-any)
RgoogleMaps_1.5.1.tar.gz(r-4.5-noble)RgoogleMaps_1.5.1.tar.gz(r-4.4-noble)
RgoogleMaps_1.5.1.tgz(r-4.4-emscripten)RgoogleMaps_1.5.1.tgz(r-4.3-emscripten)
RgoogleMaps.pdf |RgoogleMaps.html
RgoogleMaps/json (API)
NEWS

# Install 'RgoogleMaps' in R:
install.packages('RgoogleMaps', repos = c('https://markusloecher.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/markusloecher/rgooglemaps/issues

Datasets:
  • NYleukemia - Upstate New York Leukemia Data
  • bbs - Columbus OH spatial analysis data set
  • col.gal.nb - Columbus OH spatial analysis data set
  • columbus - Columbus OH spatial analysis data set
  • coords - Columbus OH spatial analysis data set
  • incidents - San Francisco crime data
  • pennLC - Pennsylvania Lung Cancer
  • polys - Columbus OH spatial analysis data set

On CRAN:

5.80 score 1 stars 9 packages 484 scripts 4.9k downloads 12 mentions 35 exports 1 dependencies

Last updated 1 years agofrom:392f747995. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-winNOTEOct 31 2024
R-4.5-linuxNOTEOct 31 2024
R-4.4-winOKOct 31 2024
R-4.4-macOKOct 31 2024
R-4.3-winOKOct 31 2024
R-4.3-macOKOct 31 2024

Exports:AddAlphaColorMapdegreeAxisgenStaticMapgeosphere_mercatorGetBingMapgetGeoCodeGetMapGetMap.bboxGetMapTilesGetOsmMapIdentifyPointsLatLon2XYLatLon2XY.centeredMapBackgroundMaxZoommypolygonNumTilesosmtile_bboxPlotArrowsOnStaticMapplotmapPlotOnMapTilesPlotOnStaticMapplotOSMplotOSMtilePlotPolysOnStaticMapqbboxReadMapTileRGB2GRAYsp_bboxSpatialToPBSTextOnStaticMapTile2RupdateusrXY2LatLon

Dependencies:png

Readme and manuals

Help Manual

Help pageTopics
add alpha level to color that lacks oneAddAlpha
Plot Levels of a Variable in a Colour-Coded MapColorMap
Columbus OH spatial analysis data setbbs col.gal.nb columbus coords polys
axis with degreesdegreeAxis
generates a "static map" from map tiles by "stitching" them togethergenStaticMap
Transform longitude/latiude points to the Mercator projection.geosphere_mercator
download a static map from the Microsoft map tile serverGetBingMap
geocoding utilitygetGeoCode
download a static map from the Google serverGetMap
GetMap bboxGetMap.bbox
download map tiles from specified map tile servers such as openstreetmap or GoogleGetMapTiles
Query the Open Street Map server for map tiles instead of Google MapsGetOsmMap
identify points by clicking on mapIdentifyPoints
San Francisco crime dataincidents
computes the coordinate transformation from lat/lon to map tile coordinatesLatLon2XY
computes the centered coordinate transformation from lat/lon to map tile coordinatesLatLon2XY.centered
get static Map from the Google serverMapBackground
computes the maximum zoom level which will contain the given lat/lon rangeMaxZoom
simple wrapper function to plot colored polygonsmypolygon
computes the necessary number of tiles from a bounding box and a zoom levelNumTiles
Upstate New York Leukemia DataNYleukemia
compute the bounding box of an OpenStreetmap tileosmtile_bbox
Pennsylvania Lung CancerpennLC
plots arrows or segments on mapPlotArrowsOnStaticMap
easy to use wrapper functionplotmap
plots on map tiles by "stitching" them togetherPlotOnMapTiles
overlays plot on background image of map tilePlotOnStaticMap
plots OSM map tilesplotOSM
plots a single OSM tileplotOSMtile
plots polygons on mapPlotPolysOnStaticMap
computes bounding boxqbbox
Read a bitmap image stored in the PNG formatReadMapTile
translates an RGB image matrix to gray scaleRGB2GRAY
computes bounding boxsp_bbox
converts spatial objects as defined in package sp to simpler PBSmapping type dataframesSpatialToPBS
plots text on mapTextOnStaticMap
simple utility to offset and scale XY coordinates with respect to the centerTile2R
Updates the 'usr' coordinates in the current plot.updateusr
computes the centered coordinate transformation from lat/lon to map tile coordinatesXY2LatLon