mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-10 00:13:55 -04:00
11 lines
211 B
R
11 lines
211 B
R
##Point pattern analysis=group
|
|
##Layer=vector
|
|
##showplots
|
|
library("maptools")
|
|
library("spatstat")
|
|
ppp=as(as(Layer, "SpatialPoints"),"ppp")
|
|
qc=quadratcount(ppp)
|
|
plot(Layer)
|
|
plot(qc, add=TRUE)
|
|
>quadrat.test(ppp);
|