title: Plotting individual and group level information
body: <p>I have been trying to plot a 3d plot where the I have 2 levels of group - there are multiple time points for an individual and each individual also belongs to a group. So, I want to create a 3d line plot where each line (time-series like data) represents an individual, and the color of the line gives information about the group.</p>
  <p>This is what I have so far:</p>
  <pre><code>plot_ly(data, x = ~x, y = ~y, z = ~z, 
          type = 'scatter3d', mode = 'lines', color=~group) 
  </code></pre>
  <p>I am open to suggestions in R and/or python, or with other libraries. Thanks so much!</p>