0
plot_ly(ProdSummary, x = logMetricRevenue2016, y = MarginPercent2016,
        mode = "markers" , axes=F , size = (Quantity2016), color=Brand, text=paste("P_Code",product_code))

the bubbleschart produced shows small bubbles and I could do size=Quantity2016*100, but that doesn't increase size of the bubbles on the chart. Its all relative.

dww
  • 30,425
  • 5
  • 68
  • 111
aastha
  • 45
  • 7
  • Try `marker = list(size = Quantity2016*100)`. **Note** that you also need to add some data and format your question into a minimal working example. As it stands it is likely to be flagged for removal, because it is not reproducible. please read [this](http://stackoverflow.com/help/mcve), [this](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example), and [read the help pages](http://stackoverflow.com/help) to get a better understanding of how to ask question on SO. – dww Jun 22 '16 at 19:37

1 Answers1

0

Try adding sizeref and sizemode under marker. Especially play around with different values of sizeref:

trace = go.Scatter(x=x,
                   y=y, 
                   mode='markers',
                   marker=dict(
                               size=[abs(i) for i in Quantity2016],
                               sizeref=0.1,
                               sizemode='area'
                              )
                   )

Just to note, negative values for size in your Quantity2016 list will make those point disappear (or I suppose be plotted as size 0), so just be aware of that.

ljc
  • 943
  • 2
  • 10
  • 26