plotly / plotly/plotly.R

plotly heatmap traces rendered as line plots in Rshiny

Abierto
#2,127 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
R
Estrellas
2.7k
Forks
641
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Ejecuta el ejemplo reproducible adjunto scatter_heatmap_plotly.zip y sigue los pasos de actualización con ambos gráficos presentes. Empieza por las rutas plotly::renderPlotly y plotly::plotlyOutput implicadas en la actualización de R Shiny y, a continuación, verifica que cambiar el menú desplegable deje la heatmap renderizada como una heatmap en lugar de como un gráfico de líneas.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
r
Área
data-visualization
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.