
for a multitype point pattern, computes the dot-type version of the local K function.
localKdot(X, from, …, rmax = NULL,
correction = "Ripley", verbose = TRUE, rvalue=NULL)
localLdot(X, from, …, rmax = NULL, correction = "Ripley")
A multitype point pattern (object of class "ppp"
with marks which are a factor).
Further arguments passed from localLdot
to
localKdot
.
Optional. Maximum desired value of the argument
Type of points from which distances should be measured.
A single value;
one of the possible levels of marks(X)
,
or an integer indicating which level.
String specifying the edge correction to be applied.
Options are "none"
, "translate"
, "translation"
,
"Ripley"
,
"isotropic"
or "best"
.
Only one correction may be specified.
Logical flag indicating whether to print progress reports during the calculation.
Optional. A single value of the distance argument
If rvalue
is given, the result is a numeric vector
of length equal to the number of points in the point pattern
that belong to type from
.
If rvalue
is absent, the result is
an object of class "fv"
, see fv.object
,
which can be plotted directly using plot.fv
.
Essentially a data frame containing columns
the vector of values of the argument
the theoretical value
Given a multitype spatial point pattern X
,
the local dot-type localKdot
is the local version of the multitype Kdot
.
Recall that Kdot(X, from)
is a sum of contributions
from all pairs of points in X
where
the first point belongs to from
.
The local dot-type X[i]
that belongs to
type from
, and it consists of all the contributions to
the dot-type X[i]
:
X
, and Kest
).
The value of Kdot
function.
By default, the function from
.
The results are stored as a function value
table (object of class "fv"
) with a column of the table
containing the function estimates for each point of the pattern
X
belonging to type from
.
Alternatively, if the argument rvalue
is given, and it is a
single number, then the function will only be computed for this value
of X
belonging to type from
.
The local dot-type localLdot
is computed by applying the transformation
# NOT RUN {
X <- amacrine
# compute all the local Ldot functions
L <- localLdot(X)
# plot all the local Ldot functions against r
plot(L, main="local Ldot functions for amacrine", legend=FALSE)
# plot only the local L function for point number 7
plot(L, iso007 ~ r)
# compute the values of L(r) for r = 0.1 metres
L12 <- localLdot(X, rvalue=0.1)
# }
Run the code above in your browser using DataLab