# NOT RUN {
data(BPoirier)
BP <- BPoirier
# }
# NOT RUN {
multivariate spatial point pattern in a rectangle sampling window
# }
# NOT RUN {
swrm <- spp(BP$trees, win=BP$rect, marks=BP$species)
kp.swrm <- kp.fun(swrm, 25, 1)
plot(kp.swrm)
# }
# NOT RUN {
multivariate spatial point pattern in a circle with radius 50 centred on (55,45)
# }
# NOT RUN {
swcm <- spp(BP$trees, win=c(55,45,45), marks=BP$species)
kp.swcm <- kp.fun(swcm, 25, 1)
plot(kp.swcm)
# }
# NOT RUN {
multivariate spatial point pattern in a complex sampling window
# }
# NOT RUN {
swrtm <- spp(BP$trees, win=BP$rect, tri=BP$tri2, marks=BP$species)
kp.swrtm <- kp.fun(swrtm, 25, 1)
plot(kp.swrtm)
# }
Run the code above in your browser using DataLab