extract_gmaps: Extract the 'ggmap's from a 'tibble' column

View source: R/mapping.r

extract_gmapsR Documentation

Extract the ggmaps from a tibble column

Description

Extract the ggmaps from a tibble column

Usage

extract_gmaps(.data, col)

Arguments

.data

(tibble) the result of a pipe with embed_gmap

col

(unquoted character) the column with the embedded maps

Value

a named list of ggmap base maps

Examples

## Not run: 
embedded_maps <- base_map_params %>%
	filter(geo_level == "state") %>%
	mutate(gmap = embed_gmap(left, bottom, right, top, zoom, maptype)) %>%
	ungroup()

list_of_basemaps <- extract_gmaps(embedded_maps) %>% map(fix_ggmap_bbox)

## End(Not run)

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