plotly / plotly/plotly.R

plotly heatmap traces rendered as line plots in Rshiny

オープン
#2,127 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明

plotly::plotlyOutput renders heatmap traces as line plots in a Rshiny dashboard.


I display two independent plotly charts, generated using plotly::renderPlotly, side by side on the same page (scatter traces on the left and heatmap traces on the right) in an Rshiny app.

When the chart is rendered for the first time, they appear as they should -- the heatmaps are shown as a heatmaps. When I alter the data plotted using some gui controls the heatmap is rendered as a line plot and never goes back to a heatmap.

The interesting thing is when the heatmap is displayed alone (without the scatter plot anywhere in the app) it behaves as expected and renders the correct charts.


The attached zip file contains a reproducible example that illustrates this error.

Steps to reproduce the error/bug:

1) Run the app and wait for the plots to load.
2) Click on the blue dropdown button in the bottom and add/remove one of the parameters (eg. DOSE).
3) Wait for the plot to load, and now you will see the heatmap converted to a line plot.

Any help in this regard will be greatly appreciated.

Best
Ram

scatter_heatmap_plotly.zip

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

添付された再現可能な例 scatter_heatmap_plotly.zip を実行し、両方のチャートが表示された状態で更新手順に従ってください。まず、R Shiny の更新に関係する plotly::renderPlotly と plotly::plotlyOutput のパスから始め、その後、ドロップダウンを変更してもヒートマップが折れ線グラフではなくヒートマップとして描画されたままになることを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
r
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。