Re: [R] add points and labels to a 3 dimensional plot

2014-03-28 Thread paladini
Thank you very much! I used indeed rgl. The problem was apperently that I used text3d() in the wrong way. When I use it this way: plot3d(x, y, z,xlab="PC1", ylab="PC2", zlab="PC3", size=5) text3d(x=x,y=y,z=z,texts=names, col=4) It workes the way I wanted. So thanks again and have a nice w

[R] add points and labels to a 3 dimensional plot

2014-03-28 Thread paladini
Hello, I want to draw 3D plot. The coordinates should be inticated with a red point and additional I want to label them with a name. I tried this: plot3d(x, y, z,xlab="PC1", ylab="PC2", zlab="PC3",main="Country score resemblance (Stoxx600 rated by Vigeo)",text3d(x=x,y=y,z=z,texts=name

Re: [R] add points and labels to a 3 dimensional plot

2014-03-28 Thread Duncan Murdoch
On 28/03/2014 6:51 AM, palad...@trustindata.de wrote: Hello, I want to draw 3D plot. The coordinates should be inticated with a red point and additional I want to label them with a name. I tried this: plot3d(x, y, z,xlab="PC1", ylab="PC2", zlab="PC3",main="Country score resemblance (Stoxx