embed_gmap | R Documentation |
ggmap
in a tibbleggmap
objects won't nicely go into a cell in a tibble
. This
function gets a ggmap
and then wraps it in a list, allowing it to go
into a tibble
.
embed_gmap(left, bottom, right, top, zoom, maptype, ...)
left |
(numeric) part of the bounding box |
bottom |
(numeric) part of the bounding box |
right |
(numeric) part of the bounding box |
top |
(numeric) part of the bounding box |
zoom |
(numeric) the zoom level |
maptype |
(character) the map type |
... |
other arguments passed to |
a ggmap
object wrapped in a list
## Not run:
embedded_maps <- base_map_params %>%
filter(geo_level == "state") %>%
mutate(gmap = embed_gmap(left, bottom, right, top, zoom, maptype)) %>%
ungroup()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.