inflate_bbox: A function to generate an inflated bbox for input to Kernel...

View source: R/inflate_bounds.R

inflate_bboxR Documentation

A function to generate an inflated bbox for input to Kernel Density function

Description

generate a bounding box based on a sf/sp (readable) object

Usage

inflate_bbox(sp_obj, value, wgs = TRUE)

Arguments

sp_obj

Either an sf object or an sf-readable file. See sf::st_drivers() for available drivers. used as the basis for the bounding box.

value

A numeric distance (in the units of the spatial object) to inflate the bounds by.

wgs

Boolean to determine if box should be defined in WGS84 CRS. default is TRUE as this plays more nicely with ggspatial...

Value

object of class "bbox" containing the spatial coordinates of a bounding area

Examples


# generate inflated (by 10m) bounding box for ROBT feeding signs
inflate_bbox(RivOtter_FeedSigns, 10)


h-a-graham/beavertools documentation built on July 21, 2023, 12:47 a.m.