[R] 3d Scatterplot using rgl

2009-05-11 Thread Zoe Hoare
Hi, I am trying to plot a 3d scatter plot using the rgl package but am having trouble. I have a matrix containing x, y and z co-ordinates and a fourth element related to a count variable. I would like to plot the points using plot3d with the sizes of the points related to the fourth element in

Re: [R] 3d Scatterplot using rgl

2009-05-11 Thread Olivier ETERRADOSSI
Hi ZoƩ, try plot3d(swadt[,1],swadt[,2],swadt[,3],radius=swadt[,4],type=s) Hope this helps. regards. Olivier Zoe Hoare wrote: Hi, I am trying to plot a 3d scatter plot using the rgl package but am having trouble. I have a matrix containing x, y and z co-ordinates and a fourth element