[R] Surface graph.

Liaw, Andy andy_liaw at merck.com
Thu Dec 9 00:31:01 CET 2004


> From: Roger Bivand
> 
> On Wed, 8 Dec 2004, Bang wrote:
> 
> > What package/code could I use to create a 3-d surface graph 
> of the predicted
> > values over two of the explanatory variables' coefficients?
> 
> I think you'll need the surface first, for example from 
> interp() in the 
> akima package, then visualise with persp() or perhaps 
> rgl.surface() in 
> package rgl.

But wouldn't it be better to predict on a regular grid, and graph that, than
to interpolate an irregular set of predicted values (assuming the model is
available such that prediction at any point is possible)?

Andy
 
> > 
> > Jim
> > James Bang
> > Department of Economics
> > University of Illinois 
> > 
> > Well I AM missing the back of my head.you COULD cut me a 
> little slack!
> > -Homer Simpson
> > 
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> > 
> 
> -- 
> Roger 
> Bivand
> Economic Geography Section, Department of Economics, 
> Norwegian School of
> Economics and Business Administration, Breiviksveien 40, 
> N-5045 Bergen,
> Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
> e-mail: Roger.Bivand at nhh.no
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> 
>




More information about the R-help mailing list