如何在统一空间数据中考虑CSR和聚类?

Bor*_*lis 5 r spatial geospatial

我似乎发现了单变量Ripley的K点模式分析结果的差异(图1).首先,我生成了1x1统一点网格,以查看我的R脚本是否产生了逻辑结果(图2).研究区域为20x40(图2).鉴于数据完全一致,我不希望在任何搜索距离(r)处看到任何随机或聚簇点模式.附加的脚本用于生成这些结果.在这些受控条件下,为什么在应该只有一个统一的点模式时,我会看到聚类和CSR?

require(spatstat)
require(maptools)
require(splancs)

# Local Variables
flower = 0
year = 2013

# Read the shapefile
sdata = readShapePoints("C:/temp/sample_final.shp")  #Read the shapefile
data = sdata[sdata$flow_new == flower,]  # subset only flowering plants
data2 = data[data$year == year,] # subset flowering plants at year X
data.frame(data2) # Check the data

# Get the ripras estimate of area based on the study area measurements
gapdata = readShapePoints("C:/temp/study_area_boundary.shp")  #Read the shapefile
whole = coordinates(gapdata) # get just the coords, excluding other data
win = convexhull.xy(whole) # Ripras will determine a good bounding polygon for the points (usually a variant of Convex Hull)
plot(win)

# Converting to PPP
points = coordinates(data2) # get just the coords, excluding other data
ppp = as.ppp(points, win) # Convert the points into the spatstat format
data.check = data.frame(ppp) # Check the format of the ppp data
summary(ppp) # General info about the created ppp object
plot(ppp) # Visually check the points and bounding area

# Now run the ppa
L.Env.ppp = envelope(ppp, Lest, nsim = 1000, correction = "best", rank =1)
plot(L.Env.ppp, main = "Uniform Test")
abline(v=(seq(1:12)), lty="dotted")
Run Code Online (Sandbox Code Playgroud)

图1

在此输入图像描述

分析结果

图2

在此输入图像描述

统一点和窗口

Jos*_*ien 3

这些点有规律地分散(有时也称为超分散)。尽管从通俗意义上讲,它们看起来是均匀的,但它们背后的点过程本身并不均匀:如果是的话,就有可能出现点对相距小于一个单位的情况。

为了引起您对均匀性的短程偏差的注意,Ripley's K 的性能完全符合其设计目的!