Skip to content
Prev 22292 / 398502 Next

What does persp() return?

I want to plot some 3D points on top of the grid produced by persp().

On 2/22/01, Paul Murrell <paul at stat.auckland.ac.nz> wrote in R-help:
But persp() does return something (in R-1.5.1): a 4x4 matrix which in the C
code is called the "viewing transformation matrix", VT.  Can VT be used to plot
additional points?  If not, is such a thing in the works?

Paul also suggested Uwe Ligges's "scatterplot3d" package, which is very nice
but seems better at producing points than grids.

Thanks!