Shadow
Usage
bt_shadow(
bertin,
data,
dx = 3,
dy = 3,
stdDeviation = 1.5,
opacity = 0.7,
fill = "#35383d",
display = TRUE
)
Arguments
- bertin
map object
- data
sf object EPSG:4326
- dx
shift in x
- dy
shift in y
- stdDeviation
blur
- opacity
opacity of the object
- fill
fill color
- display
Boolean to allow to show or hide the layer. This parameter has no effect on the calculation of the extent
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_shadow(data = world) |>
bt_layer(data = world, fill = "white") |>
bt_draw()