plotly heatmap traces rendered as line plots in Rshiny
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- R
- Estrelas
- 2.7k
- Forks
- 641
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Execute o exemplo reproduzível anexado scatter_heatmap_plotly.zip e siga as etapas de atualização com os dois gráficos presentes. Comece pelos caminhos plotly::renderPlotly e plotly::plotlyOutput envolvidos na atualização do R Shiny e, em seguida, verifique se alterar o menu suspenso mantém o heatmap renderizado como um heatmap, e não como um gráfico de linhas.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- r
- Domínio
- data-visualization
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100