Skip to contents

Export to SVG

Usage

bt_save(bertin, filename, background)

Arguments

bertin

map object

filename

file

background

background

Value

nothing is returned, a svg file is created

Examples

if (FALSE) {
library(bertin)
library(sf)
world <- st_read(system.file("gpkg/world.gpkg", package = "bertin"),
                 layer = "world", quiet = TRUE)
map <- bt_layer(data = world, fill = "#808080") |>
bt_draw()
(myfile <- tempfile(fileext = ".svg"))
if (require("chromote")){
  bt_save(bertin = map, filename = myfile)
}
}