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

생성 bubbleschart 작은 기포를 나타내고 I가 size=Quantity2016*100 할 수 있지만,이 차트의 기포 크기를 증가시키지 않는다. 그것의 모든 친척.() 여기서, MODE = "마커"

+0

'marker = list (size = Quantity2016 * 100)'을 사용해보십시오. ** 참고 ** 당신은 또한 약간의 데이터를 추가하고 질문을 최소한의 실제 예제로 형식화해야합니다. 그것이 그대로 재현 할 수 없기 때문에 제거를 위해 플래그가 지정 될 가능성이 있습니다. [this] (http://stackoverflow.com/help/mcve), [this] (http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)을 읽어보십시오.), [도움말 페이지를 읽으십시오] (http://stackoverflow.com/help)를 참고하십시오. – dww

답변

0

sizerefsizemode을 아래에 추가해보십시오. 그 점을 사라지게됩니다Quantity2016목록에size에 대한

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

그냥, 음의 값을주의하는 (또는 나는 크기 0으로 그릴 수 가정 : 특히 sizeref의 다른 값으로 놀러), 그래서 그냥 알고 있어야합니다.