Rhumbs
Usage
bt_rhumbs(
bertin,
nb = 10,
position,
stroke = "#786d6c",
strokeWidth = 2,
strokeOpacity = 1,
strokeDasharray = "none",
display = TRUE
)
Arguments
- bertin
map object
- nb
number of lines
- position
position of the text. It can be an array with x,y coordinates. For example [100,200]. It can be also a string defining the position.'topleft', 'top', 'topright', 'left', 'middle', 'right', 'bottomleft', 'bottom', 'bottomright'
- stroke
stroke color
- strokeWidth
stroke width
- strokeOpacity
stroke opacity
- strokeDasharray
stroke dash array
- 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_layer(data = world, fill = "white") |>
bt_rhumbs(position = c(370, 370), nb = 25) |>
bt_draw()