Sean Zhang
2009-Jan-23 13:40 UTC
[R] 3d scatter plot with both error bars and a flexibly fitted surface
Dear R-helpers: I, an entry level R user, wonder how make a 3d scatter plot with both error bars and a flexibly fitted surface. Can anyone eligthen me? Many Thanks in advance. -Sean [[alternative HTML version deleted]]
Dieter Menne
2009-Jan-23 15:54 UTC
[R] 3d scatter plot with both error bars and a flexibly fitted surface
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