好吧,如果你不喜欢akima::interp,也许stats::loess是你的口味?
topo.loess <- loess (z ~ x * y, topo, degree = 2, span = 0.2)
x <- seq (min (topo$x), max (topo$x), .05)
y <- seq (min (topo$y), max (topo$y), .05)
interpolated <- predict (topo.loess, expand.grid (x = x, y = y))
image (x= x, y= y, z = interpolated, asp = 1)
points (topo)
Run Code Online (Sandbox Code Playgroud)
(也沿着MASS的路线)

否则:为什么不使用gnuplot?虽然它可能被认为是一个不同的软件...
| 归档时间: |
|
| 查看次数: |
2765 次 |
| 最近记录: |