Displaying 1 result from an estimated 1 matches for "1x6vectors".
2002 Mar 18
2
persp(): add second plane (second, long question)
...things....).
Is there a code for plane3d() like some of you sent me for points3d()? I was
not able to get that out of the scatterplot3d package...
What I can do is to get the x,y and z-range for the xlim,ylim and zlim so
that the two planes would fit the box (x and y values are the same for both
(1x6vectors)). And I'm able to store the z-values in two different matrices
(6x6).
What I did then is
> xachse<-c(1:6)
> yachse<-xachse
>
> par(bg = "white")
>
> trans3d <- function(x,y,z,pmat) {
+ tmat <- t((cbind(x,y,z,1)%*% pmat))
+ list(x=tmat[1,]/tmat[4,],...