Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Kfn

Compute K-fn of a Point Pattern


Description

Actually computes L = sqrt(K/pi).

Usage

Kfn(pp, fs, k=100)

Arguments

pp

a list such as a pp object, including components x and y

fs

full scale of the plot

k

number of regularly spaced distances in (0, fs)

Details

relies on the domain D having been set by ppinit or ppregion.

Value

A list with components

x

vector of distances

y

vector of L-fn values

k

number of distances returned – may be less than k if fs is too large

dmin

minimum distance between pair of points

lm

maximum deviation from L(t) = t

References

Ripley, B. D. (1981) Spatial Statistics. Wiley.

Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.

See Also

Examples

towns <- ppinit("towns.dat")
par(pty="s")
plot(Kfn(towns, 10), type="s", xlab="distance", ylab="L(t)")

spatial

Functions for Kriging and Point Pattern Analysis

v7.3-14
GPL-2 | GPL-3
Authors
Brian Ripley [aut, cre, cph], Roger Bivand [ctb], William Venables [cph]
Initial release
2021-04-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.