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

View source: R/makeGrid.r

OB2PolygonR Documentation

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

Description

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

Usage

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


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


Greensway/BIRDS documentation built on Oct. 19, 2023, 2:35 a.m.