diff --git a/README-maptypes-1.png b/README-maptypes-1.png index 1aec048..6cffea9 100644 Binary files a/README-maptypes-1.png and b/README-maptypes-1.png differ diff --git a/README-maptypes-2.png b/README-maptypes-2.png index 73b9615..78ec303 100644 Binary files a/README-maptypes-2.png and b/README-maptypes-2.png differ diff --git a/README-maptypes-3.png b/README-maptypes-3.png index 40123d9..ad7bf2b 100644 Binary files a/README-maptypes-3.png and b/README-maptypes-3.png differ diff --git a/README-qmplot-1.png b/README-qmplot-1.png index 1f0194c..c614bb4 100644 Binary files a/README-qmplot-1.png and b/README-qmplot-1.png differ diff --git a/README-qmplot-2.png b/README-qmplot-2.png new file mode 100644 index 0000000..4d609a2 Binary files /dev/null and b/README-qmplot-2.png differ diff --git a/README.Rmd b/README.Rmd index 4de6e30..fc7d088 100644 --- a/README.Rmd +++ b/README.Rmd @@ -36,6 +36,7 @@ downtown <- subset(crime, ) qmplot(lon, lat, data = downtown, maptype = "toner-background", color = I("red")) +qmplot(lon, lat, data = downtown, maptype = "toner-lite", geom = "density2d") ``` ## Installation diff --git a/README.md b/README.md index 06cd66b..3b7b9dc 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,13 @@ + + + ggmap ===== ggmap makes it easy to retrieve raster map tiles from popular online mapping services like google maps, open street maps, cloudmade and stamen: -``` r +``` {.r} library(ggmap) ggmap(get_googlemap()) @@ -12,13 +15,13 @@ ggmap(get_googlemap()) ![](README-maptypes-1.png) -``` r +``` {.r} ggmap(get_stamenmap()) ``` ![](README-maptypes-2.png) -``` r +``` {.r} ggmap(get_stamenmap(maptype = "toner-background")) ``` @@ -26,7 +29,7 @@ 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: -``` r +``` {.r} downtown <- subset(crime, -95.39681 <= lon & lon <= -95.34188 & 29.73631 <= lat & lat <= 29.78400 @@ -37,6 +40,12 @@ qmplot(lon, lat, data = downtown, maptype = "toner-background", color = I("red") ![](README-qmplot-1.png) +``` {.r} +qmplot(lon, lat, data = downtown, maptype = "toner-lite", geom = "density2d") +``` + +![](README-qmplot-2.png) + Installation ------------