# NOT RUN {
data(Paracou15)
P15<-Paracou15
# }
# NOT RUN {
spatial point pattern in a rectangle sampling window of size 125 x 125
# }
# NOT RUN {
swmr <- spp(P15$trees, win = c(175, 175, 250, 250), marks = P15$species)
# }
# NOT RUN {
testing the random labeling hypothesis
# }
# NOT RUN {
krwmr.rl <- krfun(swmr, dis = P15$spdist, H0 = "rl", 25, 2, 50)
# }
# NOT RUN {
running more simulations is slow
# }
# NOT RUN {
# }
# NOT RUN {
krwmr.rl <- krfun(swmr, dis = P15$spdist, H0 = "rl", 25, 2, 500)
# }
# NOT RUN {
plot(krwmr.rl)
# }
# NOT RUN {
testing the species equivalence hypothesis
# }
# NOT RUN {
krwmr.se <- krfun(swmr, dis = P15$spdist, H0 = "se", 25, 2, 50)
# }
# NOT RUN {
running more simulations is slow
# }
# NOT RUN {
# }
# NOT RUN {
krwmr.se <- krfun(swmr, dis = P15$spdist, H0 = "se", 25, 2, 500)
# }
# NOT RUN {
plot(krwmr.se)
# }
# NOT RUN {
spatial point pattern in a circle with radius 50 centred on (125,125)
# }
# NOT RUN {
swmc <- spp(P15$trees, win = c(125,125,50), marks = P15$species)
krwmc <- krfun(swmc, dis = P15$spdist, H0 = "rl", 25, 2, 100)
# }
# NOT RUN {
running more simulations is slow
# }
# NOT RUN {
# }
# NOT RUN {
krwmc <- krfun(swmc, dis = P15$spdist, H0 = "rl", 25, 2, 500)
# }
# NOT RUN {
plot(krwmc)
# }
# NOT RUN {
spatial point pattern in a complex sampling window
# }
# NOT RUN {
swrt <- spp(P15$trees, win = c(125,125,250,250), tri = P15$tri, marks = P15$species)
krwrt <- krfun(swrt, dis = P15$spdist, H0 = "rl", 25, 2)
# }
# NOT RUN {
running simulations is slow
# }
# NOT RUN {
# }
# NOT RUN {
krwrt <- krfun(swrt, dis = P15$spdist, H0 = "rl", 25, 2, 500)
# }
# NOT RUN {
plot(krwrt)
# }
Run the code above in your browser using DataLab