Skip to contents

Header

Usage

bt_header(
  bertin,
  text = "",
  fontSize = 20,
  fill = "#9e9696",
  background = "white",
  backgroundOpacity = 1,
  display = TRUE,
  anchor = "end"
)

Arguments

bertin

map object

text

text to display

fontSize

text size

fill

fill color

background

color of the background

backgroundOpacity

background opacity

display

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

anchor

text anchor. start, middle, end

Value

a 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_header(text = "Title") |>
  bt_draw()