Skip to content
Prev 178683 / 398506 Next

image3d in misc3d

On 4/28/2009 10:06 AM, Colin Beale wrote:
If authors aren't listed on the help page, assume the function was 
written by the package authors.  library(misc3d) gives

Author:        Dai Feng and Luke Tierney
Maintainer:    Luke Tierney <luke at stat.uiowa.edu>

I would guess the problem comes from the mixture of conventions that rgl 
uses.  The rgl.* functions assume the Y axis points up, the *3d 
functions assume the Z axis points up.  In order to approximate 
consistency with persp(), rgl.surface() handled the coordinates in a 
strange way, and it looks as though image3d() was written in that way.

I'd suggest getting the source to image3d, simplifying the contortions 
it does with coordinates (it doesn't need them if it uses one convention 
consistently), and send the revised version to Luke.

Duncan Murdoch