[R] Adding points to wireframe

Dieter Menne dieter.menne at menne-biomed.de
Sat Nov 19 18:05:15 CET 2005


Pierre-Luc Brunelle <pierre-luc.brunelle <at> polymtl.ca> writes:

> 
> I am using function wireframe from package lattice to draw a 3D surface. 
> I would like to add a few points on the surface. I read in a post from 
> Deepayan Sarkar that "To do this in a wireframe plot you would probably 
> use the panel function panel.3dscatter". Does someone have an example? 
> When calling panel.3dscatter with only x, y and z arguments I get 
> "argument "xlim.scaled" is missing, with no default". I do not know what 
> value I should give to xlim.scaled.

Maybe your got confused by Deepayan's comment. Normally, you don't call 
panel.3dscatter directly, you will only use it when you want to change the 
default behaviour of cloud with groups.

Try to add the data points to the dataframe you use in the call to wireframe.


Dieter




More information about the R-help mailing list