Description Usage Arguments Value Author(s)
Get static map from Google Maps API and convert it to ggplot2-compatible form. See Terms and Conditions from http://code.google.com/apis/maps/documentation/staticmaps/index.html. https://github.com/hadley/ggplot2/wiki/Crime-in-Downtown-Houston,-Texas-:-Combining-ggplot2-and-Google-Maps
1 2 3 4 | GetStaticmapGoogleMaps(center, zoom = 10,
GRAYSCALE = FALSE, scale = 1, maptype = "map",
destfile = "TemporaryMap.png", n_pix = 640,
format = "png32")
|
center |
Coordinates for the center of the map |
zoom |
Zoom-level |
GRAYSCALE |
Grayscale or colours? |
scale |
Scale of the map, 1: less details, faster to load, 2: more details, much slower to load |
maptype |
Type of the map |
destfile |
Temporary file to save the obtained map picture |
n_pix |
Size of the figure (max = 640) |
format |
Format of the map picture (png32 is best) |
df Map data frame
Juuso Parkkinen sorvi-commits@lists.r-forge.r-project.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.