DataEllipse: Function to return data ellipse around a give proportion of...

makeDataEllipseR Documentation

Function to return data ellipse around a give proportion of points (prop_points) sampled from a surface.

Description

Function to return data ellipse around a give proportion of points (prop_points) sampled from a surface.

Usage

makeDataEllipse(coords, crsString, weights, n = 10000, prop_points)

Arguments

coords

coordinates of a surface-as-dataframe

crsString

string of crs coordinates, should match raster projections.

weights

the value of the surface-as-dataframe, weights the subsampling.

n

number of sampling replications

prop_points

what proportion of the subsampled cells should be included in the ellipses

Value

Returns a list of length 2. First item is a spatialPolygon, the second an sf object.


cjcampbell/SDMetrics documentation built on Oct. 2, 2022, 10:14 a.m.