makeDataEllipse | R Documentation |
Function to return data ellipse around a give proportion of points (prop_points) sampled from a surface.
makeDataEllipse(coords, crsString, weights, n = 10000, prop_points)
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 |
Returns a list of length 2. First item is a spatialPolygon, the second an sf object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.