plotly heatmap traces rendered as line plots in Rshiny
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Führe das angehängte reproduzierbare Beispiel scatter_heatmap_plotly.zip aus und befolge die Aktualisierungsschritte, wobei beide Diagramme vorhanden sind. Beginne mit den Pfaden plotly::renderPlotly und plotly::plotlyOutput, die an der Aktualisierung von R Shiny beteiligt sind, und überprüfe anschließend, dass das Ändern des Dropdown-Menüs dazu führt, dass die Heatmap als Heatmap und nicht als Liniendiagramm gerendert wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100