Describe the bug
When I pass a heatmaply plot to plotly::layout to customize figure layout, it seems that Y-axis layout options have no effect (while X-axis options do). This does not happen with other plotly::plot_ly plots.
To Reproduce
mat <- matrix(rnorm(100), nrow=10)
plotly::layout(
p=heatmaply::heatmaply(mat),
xaxis=list(showspikes=TRUE),
yaxis=list(showspikes=TRUE)
)
Only X-axis "spike" (i.e. dashed line that follows cursor vertically down to X-axis) is shown, but Y-axis spike is not there. I've tried other yaxis options, and it seems that they have no effect as well...
Screenshots
Additional context
sessionInfo() below:
35 R version 4.2.1 (2022-06-23)
36 Platform: x86_64-pc-linux-gnu (64-bit)
37 Running under: CentOS Linux 7 (Core)
46 attached base packages:
47 [1] stats graphics grDevices utils datasets methods base
48
49 other attached packages:
50 [1] heatmaply_1.6.0 viridis_0.6.2 viridisLite_0.4.0 plotly_4.11.0 ggplot2_3.5.2 nvimcom_0.9-167 magrittr_2.0.3 stringr_1.4.0 data.table_1.14.2
11
51
52 loaded via a namespace (and not attached):
53 [1] bslib_0.3.1 xfun_0.31 tidyselect_1.1.2 purrr_0.3.4 reshape2_1.4.4 colorspace_2.0-3 vctrs_0.6.5 generics_0.1.3
54 [9] htmltools_0.5.2 viridisLite_0.4.0 yaml_2.3.5 utf8_1.2.2 plotly_4.11.0 rlang_1.1.4 jquerylib_0.1.4 pillar_1.7.0
55 [17] glue_1.6.2 DBI_1.1.3 RColorBrewer_1.1-3 registry_0.5-1 foreach_1.5.2 lifecycle_1.0.4 plyr_1.8.7 munsell_0.5.0
56 [25] gtable_0.3.0 htmlwidgets_1.5.4 evaluate_0.15 codetools_0.2-18 knitr_1.39 labeling_0.4.2 fastmap_1.1.0 crosstalk_1.2.0
57 [33] seriation_1.3.5 fansi_1.0.3 Rcpp_1.0.9 scales_1.3.0 webshot_0.5.3 jsonlite_1.8.0 farver_2.1.1 gridExtra_2.3
58 [41] ggplot2_3.5.2 digest_0.6.29 stringi_1.7.8 dplyr_1.0.9 grid_4.2.1 cli_3.6.3 tools_4.2.1 sass_0.4.1
59 [49] lazyeval_0.2.2 tibble_3.1.7 crayon_1.5.1 tidyr_1.2.0 pkgconfig_2.0.3 dendextend_1.16.0 heatmaply_1.6.0 ellipsis_0.3.2
60 [57] rmarkdown_2.14 assertthat_0.2.1 httr_1.4.3 viridis_0.6.2 iterators_1.0.14 R6_2.5.1 TSP_1.2-1 colorout_1.3-2
61 [65] compiler_4.2.1
Describe the bug
When I pass a heatmaply plot to plotly::layout to customize figure layout, it seems that Y-axis layout options have no effect (while X-axis options do). This does not happen with other plotly::plot_ly plots.
To Reproduce
Only X-axis "spike" (i.e. dashed line that follows cursor vertically down to X-axis) is shown, but Y-axis spike is not there. I've tried other yaxis options, and it seems that they have no effect as well...
Screenshots
Additional context
sessionInfo()below: