title: R plotly: How to remove color mapping variable from trace name
body: <p>If I map 'color' to a variable which is neither x, y nor name, the color mapping variable gets added to the trace name on hover and in the legend:</p>
  
  <pre><code>df &lt;- data.frame(x = rnorm(5, 50, 1), 
               y = letters[1:5], 
               c = LETTERS[1:5],
               name = c("aa", "bb", "cc", "dd", "ee"),
               stringsAsFactors = FALSE)
  
  p &lt;- plot_ly(df, x = ~x, y = ~y,
               type = "bar", 
               color = ~c,              
               name = ~name,
               hoverinfo = "x+y+name")
  p
  </code></pre>
  
  <p>How can I display only the name without the color mapping variable?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Below is a more complex example where the color is mapped to a variable that represents a ranking. The 'name' is some arbitrary name that does not have a ranking. The y variable is an ordered factor that needs to be displayed in the given sequence. I only want to display the name, not the ranking variable.</p>
  
  <pre><code>df &lt;- data.frame(x = rnorm(5, 50, 1), 
               y = factor(letters[1:5], 
                          levels = c("a", "e", "c", "d", "b")), 
               c = LETTERS[1:5],
               name = c("qwe", "zxc", "sdf", "bnm", "ert"),
               stringsAsFactors = FALSE)
  
  p &lt;- plot_ly(df, x = ~x, y = ~y,
               type = "bar", 
               color = ~c,  
               colors = brewer.pal(8, "Blues")[4:8],
               name = ~name,
               hoverinfo = "x+y+name")
  p
  </code></pre>