plotly / plotly/plotly.R

plotly heatmap traces rendered as line plots in Rshiny

Ouverte
#2,127 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
R
Étoiles
2.7k
Forks
641
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Exécutez l’exemple reproductible joint scatter_heatmap_plotly.zip et suivez les étapes de mise à jour avec les deux graphiques présents. Commencez par les chemins plotly::renderPlotly et plotly::plotlyOutput impliqués dans la mise à jour de R Shiny, puis vérifiez que la modification de la liste déroulante laisse la heatmap rendue comme une heatmap plutôt que comme un graphique linéaire.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
r
Domaine
data-visualization
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.