Skip to contents

Geolines

Usage

bt_geolines(
  bertin,
  stroke = "#020e21",
  strokeWidth = c(1.5, 1.2, 0.7),
  strokeDasharray = c("none", 5, 3),
  strokeLinecap = "round",
  display = TRUE,
  strokeOpacity = 1
)

Arguments

bertin

map object

stroke

stroke color

strokeWidth

stroke width

strokeDasharray

stroke dash array

strokeLinecap

appearance of the line cap

display

Boolean to allow to show or hide the layer. This parameter has no effect on the calculation of the extent

strokeOpacity

stroke opacity

Value

a map object

Examples

library(sf)
world <- st_read(system.file("gpkg/world.gpkg", package = "bertin"),
                 layer = "world", quiet = TRUE)
bt_param(projection = "Eckert3", clip = TRUE) |>
  bt_outline() |>
  bt_layer(data = world, fill = "white") |>
  bt_geolines() |>
  bt_draw()