Skip to content
Prev 17984 / 398502 Next

persp(): add second plane (second, long question)

I think I may have been misled by the word "plane" -- I thought you just
wanted to superimpose a specified plane on the existing surface.  It
sounds like you want a second *surface*, which is a harder proposition --
short of a complete revamping of persp(), it sounds like Mike's approach
is best.  (To add another surface using trans3d(), you'd essentially have
to rewrite persp() in R code, drawing each of the appropriate polygons.)
  One of the general problems is that R's graphics model is "draw and
forget", whereas for pretty 3D graphics you really want to do hidden
line/point removal, which means keeping track of all the objects you've
drawn in a 3D space.
On Mon, 18 Mar 2002, Mike Lonergan wrote: