Skip to content
Prev 167995 / 398502 Next

3d scatter plot with both error bars and a flexibly fitted surface

Sean Zhang <seanecon <at> gmail.com> writes:
For regular grid data, I found interp.loess in package tpg easiest to use to
compute the fine grid required for the plot.

For irregular data, check package akima and the chapter on spatial statistics in
MASS (Venables/Ripley).

For plotting, nothing beats surface3d in package rgl, but you will have to do
some additional work. Try 

library(rgl)
demo(abundance) 

for something that comes close to your requirements.


Dieter