Skip to content
Prev 173797 / 398503 Next

persp plot + plotting grid lines

On 15/03/2009 10:07 AM, Kingsford Jones wrote:
Using the textured grid as in my second option looks a bit better here.

The other big difference between rgl output and the Matlab output is 
that Matlab's looks flat, whereas rgl does some fairly complicated 
lighting calculations.  But if you don't want the shiny plastic look, 
you can partially turn it off by including the following:

persp3d(x,y,z, color=color, smooth=FALSE, specular="black")

Or turn it off completely with

persp3d(x,y,z, color=color, smooth=FALSE, lit = FALSE)