Plotly not rendering in RStudio viewing mode or Shiny but in Browser
まだ誰も着手していません。
- 主要言語
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
plot_ly を使用して、提供された 2 つの R 再現コードから始め、RStudio Viewer、Shiny、外部ブラウザーでテストします。Viewer と Shiny の空白の出力をブラウザーの結果および報告された警告と比較します。両方の例が影響を受けるコンテキストで正しくレンダリングされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100