Skip to contents

Tissot's indicatrix

Usage

bt_tissot(
  bertin,
  step = 20,
  fill = "#d91848",
  fillOpacity = 0.5,
  stroke = "white",
  strokeWidth = 1.5,
  strokeOpacity = 1,
  display = TRUE
)

Arguments

bertin

map object

step

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

fill

fill color

fillOpacity

fill opacity

stroke

stroke color

strokeWidth

stroke width

strokeOpacity

stroke opacity

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(projection = "Robinson", clip = TRUE) |>
  bt_outline() |>
  bt_layer(data = world, fill = "white", fillOpacity = .35) |>
  bt_tissot(step = 20) |>
  bt_draw()