# NOT RUN {
# Generate a 10x10 meter square window:
w<-square(10)
# Generate 6 detected trees, 5 located in the window:
x<-cbind(c(6.75, 8.65, 3.95, 2, 2, 11),
c(1.36, 3.10, 6.66, 2, 4, 11),
c(1.29, 2.31, 1.80, 2, 1.5, 3))
# Draw the set formed by the detected tree crowns:
plot(w)
plot(gg_wind(x), add=TRUE)
# Calculate the results with different alpha:
HTest(x, w, 1)
HTest(x, w, 0)
HTest(x, w, -0.75)
# }
# NOT RUN {
<!-- % Add one or more standard keywords, see file 'KEYWORDS' in the -->
# }
# NOT RUN {
<!-- % R documentation directory. -->
# }
Run the code above in your browser using DataLab