Before going to the plotly tab, when you change the dropdown input, the heatmap updates. After going to the plotly tab and then back to the heatmap tab, when you change the input the heatmap breaks
Notes for troubleshooting:
This only happens with plotly. If you change the plotly plot to ggplot2, there are no errors
If a plotly plot is rendered before the heatmap, this problem won't happen. To see that, swap the two tabs or add another plotly plot to the first tab
The following javascript error is printed to the console which might give clues to the problem:
Uncaught TypeError: Cannot read property 'undefined' of undefined
at e.exports (<anonymous>:61:477869)
at Object.x.supplyDefaults (<anonymous>:61:845823)
at Object.r.plot (<anonymous>:61:551064)
at Object.r.newPlot (<anonymous>:61:550427)
at Object.renderValue (iheatmapr.js:34)
at exports.OutputBinding.shinyBinding.renderValue (htmlwidgets.js:541)
at exports.OutputBinding.onValueChange (output_binding.js:16)
at exports.OutputBinding.delegator.<computed> [as onValueChange] (htmlwidgets.js:112)
at OutputBindingAdapter.onValueChange (output_binding_adapter.js:21)
at ShinyApp.receiveOutput (shinyapp.js:332)
Hi @daattali @AliciaSchep
Please let me know whether anything has been done about this problem? I just have an identical issue and I wouldn’t want to move on static ggplot.
Thanks,
Kind regards,
Petar
This is a fatal bug but it seems to occur only in the following sequence:
To reproduce, use the following code, which plots a heatmap using code from the docs in one tab and a plotly plot in another tab:
Before going to the plotly tab, when you change the dropdown input, the heatmap updates. After going to the plotly tab and then back to the heatmap tab, when you change the input the heatmap breaks
Notes for troubleshooting: