Learn R Programming

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

ggmap (version 2.0)

A package for spatial visualization with Google Maps and OpenStreetMap

Description

ggmap allows for the easy visualization of spatial data and models on top of Google Maps, OpenStreetMaps, Stamen Maps, or CloudMade Maps using ggplot2.

Copy Link

Version

Install

install.packages('ggmap')

Monthly Downloads

30,446

Version

2.0

License

MIT

Maintainer

David Kahle

Last Published

April 13th, 2012

Functions in ggmap (2.0)

crime

Crime data
geocode

Geocode
OSM_scale_lookup

Look up OpenStreetMap scale for a given zoom level.
distQueryCheck

Check Google Maps Distance Matrix API query limit
get_map

Grab a map.
inset

Add ggplot2 insets to a map
get_googlemap

Get a Google Map
geocodeQueryCheck

Check Google Geocoding API query limit
ggmap

Plot a ggmap object
route

Grab a route from Google
mapdist

Compute map distances using Google
zips

Zip code data for the Greater Houston Metropolitan Area from the 2000 census
get_stamenmap

Get a Stamen Map
revgeocode

Reverse geocode
wind

Wind data from Hurricane Ike
make_bbox

Compute a bounding box
qmplot

Quick map plot
hadley

Highly unofficial ggplot2 image
XY2LonLat

Convert a tile coordinate to a lon/lat coordinate
routeQueryCheck

Check Google Maps Directions API query limit
ggmapplot

Don't use this function, use ggmap.
ggimage

Plot an image using ggplot2
geom_leg

Single line segments with rounded ends
get_openstreetmap

Get an OpenStreetMap
get_cloudmademap

Get a CloudMade map
LonLat2XY

Convert a lon/lat coordinate to a tile coordinate
qmap

Quick map plot
gglocator

Locator for ggplots.
theme_inset

Make a ggplot2 inset theme.
inset_raster

Add a raster annotation to a map
legs2route

Convert a leg-structured route to a route-structured route
theme_nothing

Make a blank ggplot2 theme.