| mf_shadow | R Documentation |
Plot the shadow of a polygon layer.
mf_shadow(
x,
col,
cex = 1,
add = FALSE,
extent = x,
bg,
expandBB = rep(0.04, 4)
)
x |
an sf or sfc polygon object |
col |
shadow color, hex code or color name given by colors. 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 |
|
bg |
background color of the map, hex code or color name given by
colors, ignored if |
expandBB |
expansion of the map area in each direction (bottom, left,
top, right). The expansion is expressed as a share of |
x is (invisibly) returned.
mtq <- mf_get_mtq()
mf_shadow(mtq)
mf_map(mtq, add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.