extract_map_aspect_ratio: Extract the aspect ratio of a ggplot map

View source: R/mapping.r

extract_map_aspect_ratioR Documentation

Extract the aspect ratio of a ggplot map

Description

Take a plotted ggmap object and extract its aspect ratio.

Usage

extract_map_aspect_ratio(.ggmap)

Arguments

.ggmap

(ggmap) a map

Value

(numeric) the aspect ratio of height to width

Examples

## Not run: 
map_raw <- ggmap::get_stamenmap()
map <- ggmap::ggmap(map_raw)
asp <- extract_map_aspect_ratio(map)

## End(Not run)


baslat/sak documentation built on April 14, 2025, 4:14 p.m.