I have latitude and longitude point data over time. I would like to plot (in R or Matlab) a contour map of spatial-temporal K function (much like the one below), but have no idea how. Any suggestions would be great!![enter image description here](https://i.stack.imgur.com/YnEvs.png)
以下是如何使用以下方法计算时空 K 函数stkhat
函数在splancs
包裹。我在时空立方体上生成一些随机数据,然后计算最多 0.3 个距离单位和 0.3 个时间单位的空间范围的时空 K 函数估计。
> require(splancs)
> xyt=matrix(runif(3000),ncol=3)
> poly=bboxx(spoints(c(0,1,0,1)))
> tlim=c(0,1)
> s=seq(0,.3,len=51)[-1]
> t=s
> stk = stkhat(xyt[,1:2], xyt[,3], poly, tlim, s,t)
> image(str$kst)
> require(lattice)
> image(x=stk$s, y=stk$t,z = stk$kst)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)