# 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 species equivalence hypothesis
# }
# NOT RUN {
kdswmr <- kdfun(swmr, dis = P15$spdist, 50, 2, 100)
# }
# NOT RUN {
running more simulations is slow
# }
# NOT RUN {
# }
# NOT RUN {
kdswmr <- kdfun(swmr, dis = P15$spdist, 50, 2, 500)
# }
# NOT RUN {
plot(kdswmr)
# }
# 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)
kdswmc <- kdfun(swmc, dis = P15$spdist, 50, 2, 100)
# }
# NOT RUN {
running more simulations is slow
# }
# NOT RUN {
# }
# NOT RUN {
kdswmc <- kdfun(swmc, dis = P15$spdist, 50, 2, 500)
# }
# NOT RUN {
plot(kdswmc)
# }
# 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)
kdswrt <- kdfun(swrt, dis = P15$spdist, 50, 2, 100)
# }
# NOT RUN {
running simulations is slow
# }
# NOT RUN {
# }
# NOT RUN {
kdswrt <- kdfun(swrt, dis = P15$spdist, 50, 2, 500)
# }
# NOT RUN {
plot(kdswrt)
# }
Run the code above in your browser using DataLab