Skip to contents

Save map to file

Usage

obs_map_save(map, file, width = 10, height = 8, dpi = 300)

Arguments

map

Map object (ggplot or leaflet).

file

Output file path.

width

Width in pixels or inches.

height

Height in pixels or inches.

dpi

Resolution for static maps.

Examples

if (FALSE) { # \dontrun{
map <- obs_map(obs_example_db())
obs_map_save(map, "map.png", width = 10, height = 8)
} # }