edgeData: Edge Data Correction

View source: R/neighborsPointPattern.R

edgeDataR Documentation

Edge Data Correction

Description

Adjust border effect using a torus correction connecting vertical and horizontal borders for a continuous spaces

Usage

edgeData(
  x,
  y,
  xlim = c(0, 1),
  ylim = c(0, 1),
  rMax = min(c(xlim[2], ylim[2]))/4
)

Arguments

x, y

Numeric vectors with 'x' and 'y' coordinates in a cartesian space. They must have the same length.

xlim, ylim

Numeric vectors with two values defining the 'x' and 'y' axis limit in the cartesian plane.

rMax

Maximum distance for neighbors spatial statistics.

Value

'edgeData' returns a list with tree positions: 'edgeData' data with border torus correction coordinates ‘originalData' original data ’x' and 'y' coordinates ‘pointsVF' logical vector with the same length of ’edgeData' indicating the 'TRUE' data coordinates and 'FALSE' border adjustment coordinates.

Author(s)

Alexandre Adalardo de Oliveira ecovirtualpackage@gmail.com

References

Baddeley, A.; Rubak, E; Turner, R. 2016. Spatial Point Patterns: Methodology and Applications with R. CRC Press. Wiegand, T. & Moloney, K.A. 2014. Handbook of Spatial Point-Pattern Analysis in Ecology. CRC Press.

Examples

## Not run: 
edgeData(x = runif(10, 0, 1), y= runif(10, 0, 1), xlim = c(0,1), ylim = c(0,1), rMax = 0.25)

## End(Not run)

adalardo/Rppsp documentation built on June 10, 2025, 1:11 p.m.