Extract all point in a quadrats by spatstat package

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Extract all point in a quadrats by spatstat package

R help mailing list-2

With the following code i can divides window into quadrats and counts the numbers of points in each quadrat.

X <- runifpoint(50)
quadratcount(X, 4, 5)
quadratcount(X, xbreaks=c(0, 0.3, 1), ybreaks=c(0, 0.4, 0.8, 1))
qX <-  quadratcount(X, 4, 5)
plot(qX, add=TRUE)

But I want to mark each  quadrats  and select/ extract only those points by selecting quadrats id . 
Can anyone plese help me regarding this issue ?
Thanks in advance .

Tanvir Ahamed
Stockholm, Sweden     |  [hidden email]

[hidden email] mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.