Skip to content
Prev 106069 / 398506 Next

persp() problem

On 12/13/2006 9:57 AM, Michael Sun wrote:
No, trans3d just transforms the observed points to the appropriate 
coordinates in the 2d plot from persp.  You'll need to use points() or 
some other function to actually do the plotting.

One limitation of the algorithm used by persp (the painter's algorithm) 
is that it only works when things are drawn in a certain order.  You may 
find that you'll get errors (points that should be hidden showing up) 
using this approach.  If that's a problem, you might want to switch to 
using persp3d and points3d from the rgl package.

Duncan Murdoch