Skip to content
forked from dkahle/ggmap

a package for plotting maps in R with ggplot2

Notifications You must be signed in to change notification settings

mattmoehr/ggmap

This branch is 354 commits behind dkahle/ggmap:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4dec66b · Jan 7, 2015

History

93 Commits
Jan 7, 2015
Apr 5, 2013
Feb 22, 2014
Jan 7, 2015
Jan 7, 2015
Dec 10, 2014
Dec 10, 2014
Dec 10, 2014
Dec 10, 2014
Dec 10, 2014
Dec 10, 2014
Dec 10, 2014
Dec 10, 2014
Dec 10, 2014
Dec 10, 2014
Dec 10, 2014
Dec 10, 2014

Repository files navigation

ggmap

ggmap makes it easy to retrieve raster map tiles from popular online mapping services like google maps, open street maps, cloudmade and stamen:

library(ggmap)

ggmap(get_googlemap())

ggmap(get_stamenmap())

ggmap(get_stamenmap(maptype = "toner-background"))

Use qmplot() in the same way you'd use qplot(), but with a map automatically added in the background:

downtown <- subset(crime,
  -95.39681 <= lon & lon <= -95.34188 &
   29.73631 <= lat & lat <=  29.78400
)

qmplot(lon, lat, data = downtown, maptype = "toner-background", color = I("red"))

qmplot(lon, lat, data = downtown, maptype = "toner-lite", geom = "density2d", color = I("red"))

Installation

  • From CRAN: install.packages("ggmap")

  • From Github: devtools::install_github("dkahle/ggmap")

About

a package for plotting maps in R with ggplot2

Resources

Citation

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%