Plot the shadow of a polygon layer.
Usage
mf_shadow(
x,
col,
cex = 1,
add = FALSE,
extent = x,
bg,
expandBB = rep(0.04, 4)
)Arguments
- x
an sf or sfc polygon object
- col
shadow color. The default color is the highlight color (see mf_theme).
- cex
shadow extent
- add
whether to add the layer to an existing plot (TRUE) or not (FALSE)
- extent
object with an
st_bboxmethod to define plot extent; defaults tox.extentandxmust use the same CRS.- bg
background color of the map, hex code or color name given by colors, ignored if
add = TRUE- expandBB
fractional values to expand the bounding box with, in each direction (bottom, left, top, right)
Examples
mtq <- mf_get_mtq()
mf_shadow(mtq)
mf_map(mtq, add = TRUE)
