Skip to contents

Graticules

Usage

bt_graticule(
  bertin,
  stroke = "white",
  strokeDasharray = "none",
  strokeWidth = 0.8,
  step = c(10, 10),
  display = TRUE
)

Arguments

bertin

map object

stroke

stroke color

strokeDasharray

stroke dash array

strokeWidth

stroke width

step

gap between graticules. The value can be a number or an array of two values

display

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

Value

map object

Examples

library(sf)
world <- st_read(system.file("gpkg/world.gpkg", package = "bertin"),
                 layer = "world", quiet = TRUE)
bt_param(margin = 10, width = 500, projection = "Winkel3") |>
  bt_layer(data = world, fill = "red") |>
  bt_graticule(strokeWidth = 1.5, stroke  = "green", step  = 15)|>
  bt_draw()