Last chance! 50% off unlimited learning
Sale ends in
Given a spatial point pattern with several columns of marks, this function computes the mark correlation function between each pair of columns of marks.
markcrosscorr(X, r = NULL,
correction = c("isotropic", "Ripley", "translate"),
method = "density", …, normalise = TRUE, Xname = NULL)
The observed point pattern.
An object of class "ppp"
or something acceptable to
as.ppp
.
Optional. Numeric vector. The values of the argument
A character vector containing any selection of the
options "isotropic"
, "Ripley"
, "translate"
,
"translation"
, "none"
or "best"
.
It specifies the edge correction(s) to be applied.
Alternatively correction="all"
selects all options.
A character vector indicating the user's choice of
density estimation technique to be used. Options are
"density"
,
"loess"
,
"sm"
and "smrep"
.
If normalise=FALSE
,
compute only the numerator of the expression for the
mark correlation.
Optional character string name for the dataset X
.
A function array (object of class "fasp"
) containing
the mark cross-correlation functions for each possible pair
of columns of marks.
First, all columns of marks are converted to numerical values.
A factor with
Next, each pair of columns is considered, and the mark
cross-correlation is defined as
Note that X
are independent
and identically distributed, then
The argument X
must be a point pattern (object of class
"ppp"
) or any data that are acceptable to as.ppp
.
It must be a marked point pattern.
The cross-correlations are estimated in the same manner as
for markcorr
.
# NOT RUN {
# The dataset 'betacells' has two columns of marks:
# 'type' (factor)
# 'area' (numeric)
if(interactive()) plot(betacells)
plot(markcrosscorr(betacells))
# }
Run the code above in your browser using DataLab