Learn R Programming

dbmss (version 1.2.4)

K.r: Estimation of the K function

Description

Estimates the K function

Usage

K.r(X, r, ReferenceType = "", NeighborType = "")

Arguments

X
A point pattern (ppp.object), marks must be a dataframe with two columns: PointType: labels, as factors. PointWeight: weights.
r
A vector of distances.
ReferenceType
One of the point types. Default is all point types.
NeighborType
One of the point types. Default is all point types.

Value

  • A vector containing K(r) values.

Details

K is a cumulative, topographic measure of a point pattern structure.

References

Ripley, B. D. (1976). The Foundations of Stochastic Geometry. Annals of Probability 4(6): 995-998. Ripley, B. D. (1977). Modelling Spatial Patterns. Journal of the Royal Statistical Society B 39(2): 172-212.

See Also

L.r, Ktest, KEnvelope, Kest, Kcross

Examples

Run this code
data(paracou16)
plot(paracou16)

# Calculate K
r <- 0:30
ActualValues.X <- K.r(paracou16, r)

# Plot
PlotResults(r, DivideByPiR2(ActualValues.X, r), ylab="K / (pi R^2)", ReferenceValue=1)

Run the code above in your browser using DataLab