Skip to contents

The viz_render function returns a pretty map in SVG format :-)

Usage

viz_render(map)

Arguments

map

A geoviz object created with viz_create.

Examples

library(sf)

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

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