[R] how to draw a perspective pyramid

dxc13 dxc13 at health.state.ny.us
Mon Sep 1 01:21:30 CEST 2008

Dear list,

I am trying to construct a perspective plot of a 2D triangle, or pyramid.  I
can easily do the one dimensional plot (code below), but I can't figure out
how to do it in a perspective plot for two input variables.  Does anyone
have a simple solution? 


#code for a triangle
u <- seq(-1,1,.001)
tri <- (1-abs(u))
plot(tri~u,type="l",main="Second Iteration Kernel: Two Input

View this message in context: http://www.nabble.com/how-to-draw-a-perspective-pyramid-tp19247124p19247124.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list