data(lansing)
# Multitype point pattern --- trees marked by species
<testonly># Smaller dataset
data(betacells)
lansing <- betacells[seq(2, 135, by=3), ]</testonly>
fit1 <- ppm(lansing, ~ marks, Poisson())
is.multitype(fit1)
# TRUE
fit2 <- ppm(lansing, ~ 1, Poisson())
is.multitype(fit2)
# TRUE
data(cells)
# Unmarked point pattern
fit3 <- ppm(cells, ~ 1, Poisson())
is.multitype(fit3)
# FALSE
Run the code above in your browser using DataLab