mf_init: Initialize a map with a specific extent

Description Usage Arguments Value Examples

View source: R/mf_init.R

Description

Plot an invisible layer with the extent of a spatial object.

Usage

1
mf_init(x, expandBB = rep(0, 4), theme)

Arguments

x

object of class sf, sfc or Raster

expandBB

fractional values to expand the bounding box with, in each direction (bottom, left, top, right)

theme

apply a theme from mf_theme

Value

No return value, a map is initiated.

Examples

1
2
3
4
mtq <- mf_get_mtq()
target <- mtq[30, ]
mf_init(target)
mf_map(mtq, add = TRUE)

mapsf documentation built on Sept. 24, 2021, 5:06 p.m.