plotly / plotly/plotly.R

plotly heatmap traces rendered as line plots in Rshiny

Aberta
#2,127 0 comentários 0 reações 0 responsáveis Ver no GitHub

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

scatter_heatmap_plotly.zip

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. 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

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.