Skip to contents

The viz_save function allows to download the map

Usage

viz_save(map)

Arguments

map

a geoviz object create with the viz_create

Value

A file path to the downloaded SVG map.

Examples

library(sf)
world <- st_read(
  system.file("gpkg/world.gpkg", package = "geovizr"),
  quiet = TRUE
)

viz_create() |>
  viz_outline() |>
  viz_path(data = world) |>
  viz_save()