get_ggmap | R Documentation |
Wrapper to load a ggmap
get_ggmap(
coord,
googlekey = NA,
zoom = 12,
mapstyle = c(feature = "all", element = "labels", visibility = "off"),
maptype = "terrain",
mapcolor = "bw",
...
)
coord |
a data.frame or tibble with coordinates (latlon) defining the map extensions in the form of coord = tibble(lon = ..., lat = ..., type = c("center", "lb", "rt", ...));
the reason for this structure is, that |
googlekey |
your google api key as a character string (see ? |
zoom |
zoom factor for |
mapstyle |
style parameter for |
maptype |
parameter for |
mapcolor |
color parameter for |
... |
additional parameter for |
ggplot2 / ggmap object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.