OB2Polygon: Create the polygon for the study area from a data set of...

Description Usage Arguments Value Examples

View source: R/makeGrid.r

Description

Create the polygon for the study area from a data set of class ‘OrganizedBirds’

Usage

1
OB2Polygon(x, shape = "bBox")

Arguments

x

an object of class ‘OrganizedBirds’, ‘sf’ or ‘SpatialPointsDataFrame’

shape

which type of polygon should be made from the data:

  • a bounding box (“bBox” or “bounding box”; i.e. the smallest bounding rectangle that contains all points),

  • a convex hull (“cHull” or “convex hull”; i.e. the smallest convex set that contains all the points).

  • the minimum circle (“minCircle” or “min circle”; i.e. the smallest circle that covers all the points).

Value

an object of class ‘sf’ with a polygon with geodesic coordinates in WGS84 (ESPG:4326).

Examples

1
2
  ob <- organizeBirds(bombusObs)
  polygon <- OB2Polygon(ob, shape = "cHull")

BIRDS documentation built on June 27, 2021, 1:06 a.m.