# NOT RUN {
data(BPoirier)
BP <- BPoirier
# }
# NOT RUN {
univariate pattern in a rectangle of size [0,110] x [0,90]
# }
# NOT RUN {
swr <- spp(BP$trees, win=BP$rect)
# }
# NOT RUN {
an alternative using atomic vectors of point coordinates
# }
# NOT RUN {
swr <- spp(BP$trees, win=BP$rect)
summary(swr)
plot(swr)
# }
# NOT RUN {
univariate pattern in a circle with radius 50 centred on (55,45)
# }
# NOT RUN {
swc <- spp(BP$trees, win=c(55,45,50))
summary(swc)
plot(swc)
plot(swc, out=TRUE) # plot points outside the circle
# }
# NOT RUN {
multivariate pattern in a rectangle of size [0,110] x [0,90]
# }
# NOT RUN {
swrm <- spp(BP$trees, win=BP$rect, marks=BP$species)
summary(swrm)
plot(swrm)
plot(swrm, chars=c("b","h","o")) # replace symbols by letters
# }
# NOT RUN {
marked pattern in a rectangle of size [0,110] x [0,90]
# }
# NOT RUN {
swrn <- spp(BP$trees, win=BP$rect, marks=BP$dbh)
summary(swrn)
plot(swrn)
# }
# NOT RUN {
multivariate pattern in a complex sampling window
# }
# NOT RUN {
swrt <- spp(BP$trees, win=BP$rect, tri=BP$tri1, marks=BP$species)
summary(swrt)
plot(swrt)
plot(swrt, out=TRUE) # plot points outside the sampling window
# }
# NOT RUN {
converting a ppp object from spatstat.geom
# }
# NOT RUN {
data(demopat)
demo.spp<-ppp2spp(demopat)
plot(demo.spp)
# }
Run the code above in your browser using DataLab