title: rgl plot3d plotting points (spheres) and connecting them with single line
body: <p>I am using the <code>plot3d</code> function from the <code>rgl</code> package. I have generated spheres using xyz co-ordinate data and I want to connect them with single line.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>file=read.table("input.txt")
  df=data.frame(x=file[,1],y=file[,2],z=file[,3], color=file[,4])
  plot3d(df$x, df$y, df$z, col=df$col,  type='b')
  </code></pre>
  
  <p>where b is for points joined by lines</p>
  
  <p>If I use s instead of b it is giving me only spheres. </p>