pairwise(plants, maxN = NULL, maxR = NULL, select = NULL, selpar = NULL,
kernel, kerpar = NULL)
ppp
), containing the plants coordinates and marks with the plant size and possibly other attributes.(imarks, jmarks, dists, dranks, par)
, where imarks
are the marks for the subject plant (a 1-row data frame), jmarks
is a data frselect
, usually a list or vector. Default: NULL.(imarks, jmarks, dists, dranks, par)
, where imarks
are the marks for the subject plant (a 1-row dakernel
, usually a list or vector. Default: NULL.plants
, with the competition indices added to marks(plants)
as a data frame column cindex
.Some simple selection rules can be implemented by giving a value to maxN
or maxR
. In any case, reasonable limits in one of these variables (they are mutually exclusive) may be advisable for reducing computation.
More complex rules can be specified by the select
function, and parameters in selpar
. See select
for examples.
Kernel computation is specified by the kernel
function, and parameters in kerpar
. See kernel
for examples.
select
, kernel
, edges
# Hegyi (1974) index
summary(pairwise(finpines, maxR = 6, kernel=powers.ker, kerpar =
list(pi=1, pj=1, pr=1, r0=0.3048, smark="diameter")))
Run the code above in your browser using DataLab