Sean Zhang <seanecon <at> gmail.com> writes: > I, an entry level R user, wonder how make a 3d scatter plot with both error > bars and a flexibly fitted surface.
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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.