Plotly R - error “`line.width` does not currently support multiple values.”

假如想象 提交于 2019-12-11 02:59:56

问题


When I run the following:

interactive_plot <- plot_ly(
  data = vep_wes_aff_rare_summary, 
  x = ~n, 
  y = ~mean_af,

  type = "scatter",
  mode = "markers",
  hoverinfo = "text",
  text = ~paste("Var: ", rsIDs, '<br><br>Cases:', n, '<br><br>Mean_AF:', mean_af),
  color = ~mean_af,
  size = ~n,
  marker = list(sizeref=0.1)
)%>%
layout(
  title = 'SFARI - SCN2A Variants<br>WES SNPs/ Indels filtered by VEP(High/ Mod)',
  xaxis = list(type = "log", title = "Cases", family='Courier New',size=22, color='#7f7f7f'),
  yaxis = list(title = "Average Allele Frequency", family='Courier New', size=22, color='#7f7f7f', tickformat = '.1%')
)
interactive_plot

I get this error:

Warning message:
`line.width` does not currently support multiple values. 

I've tried commenting out a few of the list(,,,) lines. I have to do a demo and would prefer not errors/ warnings onstage.

来源:https://stackoverflow.com/questions/52599355/plotly-r-error-line-width-does-not-currently-support-multiple-values

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!