powered by
Read a file in standard format and create a point process object.
ppinit(file)
class "pp" object with components x, y,
"pp"
x
y
xl, xu, yl, yu
xl
xu
yl
yu
string giving file name
Calls ppregion to set the domain.
ppregion
The file should contain
the number of points a header (ignored) xl xu yl yu scale x y (repeated n times)
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
towns <- ppinit("towns.dat") par(pty="s") plot(Kfn(towns, 10), type="b", xlab="distance", ylab="L(t)")
Run the code above in your browser using DataLab