Re: [R] How do I connect dots in the RGL package?

2012-06-13 Thread Maaike_020
David Winsemius wrote > > > And that is the only problem you see? The background is completely > distracting the viewer from the data Yuck. This is a system for > statistics. If you want to make movies go to Pixar. > > Wow... well ok.. -- View this message in context: http://r.789

Re: [R] How do I connect dots in the RGL package?

2012-06-13 Thread Maaike_020
David Winsemius wrote > > > > open3d() > [1] 2 > > points3d(rnorm(10),rnorm(10),rnorm(10)) > > > > # First add standard axes > > axes3d() > > lines3d( x=c(-1,1), y=c(-1,1), z=c(-1,1) ,col="red") > Thank you so much, it works! I have set a photo as a background by rgl.bg(sphere=TRU

[R] How do I connect dots in the RGL package?

2012-06-12 Thread Maaike_020
Hi all, I just started using the rgl package in R, and I need to know how I connect the dots I created. A simple line from one coördinate (x0,y0,z0) to another (x1,y1,z1) will do. I tried using the code rgl.lines, but it doesn't accept lines that don't stem from O (0,0,0). Please help! Thanks!