Learn R Programming

dbmss (version 1.2.4)

L.r: Estimation of the L function

Description

Estimates the L function

Usage

L.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 L(r) values.

Details

L is the normalized version of K: $L(r)=\sqrt{\frac{K}{\pi}}-r$.

References

Besag, J. E. (1977). Comments on Ripley's paper. Journal of the Royal Statistical Society B 39(2): 193-195.

See Also

K.r, LEnvelope

Examples

Run this code
data(paracou16)
plot(paracou16)

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

# Plot
PlotResults(r, ActualValues.X, ylab="L", ReferenceValue=0)

Run the code above in your browser using DataLab