A numeric vector containing the count of all trees within the radius for each focal tree.
Arguments
gx
A numeric vector of x-coordinates for the trees.
gy
A numeric vector of y-coordinates for the trees.
r
A numeric scalar for the radius parameter.
edge_correction
Character; see `ba_simple()` for the `"safe"` option that skips focal trees close to the edges.
bounds
Optional numeric vector `c(xmin, xmax, ymin, ymax)` giving the plot extent.
When `NULL`, the range of `gx`/`gy` is used; supply bounds if your data do not span the full plot.