Re: [R] RGL plot : lighting problem when triangle3d and persp3d are used in the same plot

2012-08-28 Thread Duncan Murdoch
On 28/08/2012 7:49 AM, Stephane Chantepie wrote: thanks for the reply I am sorry but I do not have any skills in C++ Nevertheless, I found a solution to my problem... By using another package "misc3d" and more precisely the association of the two functions drawScene.rgl and surfaceTriangles

Re: [R] RGL plot : lighting problem when triangle3d and persp3d are used in the same plot

2012-08-28 Thread Stephane Chantepie
thanks for the reply I am sorry but I do not have any skills in C++ Nevertheless, I found a solution to my problem... By using another package "misc3d" and more precisely the association of the two functions drawScene.rgl and surfaceTriangles drawScene.rgl(surfaceTriangles(x,y,z,color="gray",sm

Re: [R] RGL plot : lighting problem when triangle3d and persp3d are used in the same plot

2012-08-27 Thread Duncan Murdoch
On 27/08/2012 1:47 PM, Stephane Chantepie wrote: Dear all, I have tried to plot a triangular matrix with the function persp3d(rgl). for example z=rbind(c(1,NA,NA,NA),c(5,3,NA,NA),c(4,2,9,NA),c(8,6,5,11)) x=1:4 y=1:4 persp3d(x,y,z,color="gray") The two extreme points are not plotted (value=1 a

[R] RGL plot : lighting problem when triangle3d and persp3d are used in the same plot

2012-08-27 Thread Stephane Chantepie
Dear all, I have tried to plot a triangular matrix with the function persp3d(rgl). for example z=rbind(c(1,NA,NA,NA),c(5,3,NA,NA),c(4,2,9,NA),c(8,6,5,11)) x=1:4 y=1:4 persp3d(x,y,z,color="gray") The two extreme points are not plotted (value=1 and value=10). It seems because the half of the matr