title: Coloring jitters in a plotly box plot by group variable
body: <p>I am dealing with a dataset which is as follows</p>
  
  <pre><code>Age = sample(10:99, 50, replace=T)
  Level = sample( LETTERS[1:4], 50, replace=TRUE )
  df = as.data.frame(cbind(Age, Level))
  </code></pre>
  
  <p>This is my boxplot with jitters for the variable <code>Age</code></p>
  
  <pre><code>library(plotly)
  plot_ly(y = ~df$Age, type = "box", boxpoints = "all", jitter = 0.3,
          pointpos = -1.8)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/5LbD7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5LbD7.png" alt="enter image description here"></a></p>
  
  <p>My question is, how do i color the jitter points on the left differently based on the level variables? Right now there are four levels in my dataset , A, B, C, D. Points corresponding to level A should be of certain color, points corresponding to level B should be in different color so on.</p>
  
  <p>I tried</p>
  
  <pre><code>plot_ly(y = ~df$Age, type = "box", boxpoints = "all", jitter = 0.3, color = ~df$Level,pointpos = -1.8)
  </code></pre>
  
  <p>This is giving me four different boxplots. My goal is just one boxplot with the jitters colored based on the level variable. So any suggestions or help is much appreciated.</p>