https://github.com/cran/spatstat
Raw File
Tip revision: d80d0356a830b2fde6d05d453697a7018e86cb7f authored by Adrian Baddeley on 22 October 2009, 00:00:00 UTC
version 1.17-0
Tip revision: d80d035
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