| mf_init | R Documentation |
This function is deprecated.
Please use mf_map(x, col = NA, border = NA) instead.
Plot an invisible layer with the extent of a spatial object.
Always use add = TRUE in mf_map() calls following an
mf_init() call.
This function is similar to mf_map(x, col = NA, border = NA).
mf_init(x, expandBB = rep(0, 4), extent = x, bgc)
x |
object of class |
expandBB |
fractional values to expand the bounding box with, in each direction (bottom, left, top, right) |
extent |
object with an st_bbox method to define plot extent; defaults to x. extent and x must use the same CRS. |
No return value, a map is initiated.
mtq <- mf_get_mtq()
target <- mtq[30, ]
mf_map(target, type = "base", col = NA, border = NA)
mf_map(mtq, add = TRUE)
# or
mf_map(mtq, extent = target)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.