mf_init function

Initialize a map with a specific extent

Initialize a map with a specific extent

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), theme)

Arguments

  • x: object of class sf, sfc or SpatRaster
  • expandBB: fractional values to expand the bounding box with, in each direction (bottom, left, top, right)
  • theme: apply a theme (deprecated)

Returns

No return value, a map is initiated.

Examples

mtq <- mf_get_mtq() target <- mtq[30, ] mf_init(target) mf_map(mtq, add = TRUE)
  • Maintainer: Timothée Giraud
  • License: GPL (>= 3)
  • Last published: 2024-10-22