extract_map_aspect_ratio | R Documentation |
Take a plotted ggmap
object and extract its aspect ratio.
extract_map_aspect_ratio(.ggmap)
.ggmap |
(ggmap) a map |
(numeric) the aspect ratio of height to width
## Not run:
map_raw <- ggmap::get_stamenmap()
map <- ggmap::ggmap(map_raw)
asp <- extract_map_aspect_ratio(map)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.