Plotly not rendering in RStudio viewing mode or Shiny but in Browser
还没有人认领这个 Issue。
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
I am not able to render a Plotly-plot in my RStudio Viewer mode and in Shiny as well. When i open the plot through RStudio in my browser, the plot renders. The viewer as well as Shiny just show a white space.

d <- diamonds[sample(nrow(diamonds), 1000), ]
plot_ly(d, x = ~carat, y = ~price, text = ~paste("Clarity: ", clarity),
mode = "markers", color = ~carat, size = ~carat, marker = list(line = list(color = "black")))
When i try to run the code above, i get the following message:
No trace type specified:
Based on info supplied, a 'scatter' trace seems appropriate.
Read more about this trace type -> https://plot.ly/r/reference/#scatter
Warning message:
line.width does not currently support multiple values.
With
plot_ly(economics, x = ~pop, type = "histogram")
i get no message, but the plot doesnt render too.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从提供的两个 R 重现示例开始,使用 plot_ly,分别在 RStudio Viewer、Shiny 和外部浏览器中进行测试。将 Viewer 和 Shiny 的空白输出与浏览器结果以及报告的警告进行比较;当两个示例都能在受影响的上下文中正确渲染时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100