https://github.com/cran/spatstat
Raw File
Tip revision: f8622c6e5c97c9f6ef7e46847aa87ac55bd5b947 authored by Adrian Baddeley on 09 September 2011, 13:09:10 UTC
version 1.23-4
Tip revision: f8622c6
ppmmarkorder.R
# ppmmarkorder.R
# $Revision: 1.1 $  $Date: 2009/01/28 00:13:44 $
# Test that predict.ppm, plot.ppm and plot.fitin
# tolerate marks with levels that are not in alpha order
#
require(spatstat)
data(amacrine)
X <- amacrine
levels(marks(X)) <- c("ZZZ", "AAA")
fit <- ppm(X, ~marks, MultiStrauss(c("ZZZ","AAA"), matrix(0.06, 2, 2)))
aa <- predict(fit, type="trend")
bb <- predict(fit, type="cif")
plot(fit)
plot(fitin(fit))

back to top