title: Ploting scatter marker symbols from an image in plotly R
body: <p>I want my marker symbols to be images from a file instead of default symbols as listed <a href="http://www.r-graph-gallery.com/125-the-plotlys-symbols/" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I searched but couldn't find a way to use an image file for the symbols.
  Let's say I have a <code>data.frame</code> </p>
  
  <pre><code>dt&lt;-data.frame(seq(1,10,by=1))
  </code></pre>
  
  <p>and</p>
  
  <pre><code>dt1&lt;-data.frame(seq(1,20,by=1))
  </code></pre>
  
  <p>Ploting using:</p>
  
  <pre><code>plot_ly(dt, x=dt$seq.1..10..by...1., y=dt1$seq.1..20..by...1.) %&gt;%
  add_trace(dt, x = dt$seq.1..10..by...1., y = dt$seq.1..10..by...1., type = 'scatter', mode = 'markers',
  marker = list(symbol=~2,size = 15, opacity = 0.5, colors="black"))
  </code></pre>
  
  <p>Gives the output as:
  <a href="https://i.stack.imgur.com/pbivW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pbivW.png" alt="enter image description here"></a></p>
  
  <p>Here I can change the numbers at <code>symbol=</code> from <code>~1</code> to <code>~32</code> as listed but I want to use a custom image instead. 
  Any idea on how to do it. Use any Image you want from the web as an example.</p>
  
  <p>Thanks</p>