Closed mcsimenc closed 3 years ago
I think you should check out the arguments subplot_widths
and subplot_heights
Also sorry about the confusing warning, it's a long-running issue see https://github.com/talgalili/heatmaply/issues/86
Thanks, that does it!
heatmaply(datMat, row_side_colors = 1:10,
row_side_palette = pal,
subplot_widths = c(0.95, 0.02, 0.03)) %>%
layout(width = 3000)
Now:
Awesome, cheers
There's still the issue of:
Specifying width/height in layout() is now deprecated. Please specify in ggplotly() or plot_ly()
How can one modify the entire width/height without using layout()
?
The problem is that we use neither ggplotly nor plot_ly to actually generate the final output, rather we use subplot
which doesn't take width/height arguments... Should probably raise this on the plotly R github, and maybe I have already; couldn't tell you
So no one can actually change the size of their plot without using layout()
, which is depreciated?
In an Rmarkdown doc, if the height or width is larger than the viewing window, there are no scroll bars to move the viewing window of the plot, so the ends of the heatmap are effectively cut off. This really detracts from the usefulness of heatmaply()
if one cannot easily view the entire heatmap
It's not something that I can really implement as it's a feature of the plotly R library. I'd have to hack at object internals and those are subject to change without notice. I'm going to stick with the public API unless absolutely necessary.
For what it's worth it's been deprecated for like 6 years without being removed so I'm not too concerned.
It's an open issue on the plotly repo eg https://github.com/plotly/plotly.R/issues/1613
Is there a way to get scroll bars (left-right and up-down) for viewing an entire heatmap in an rmarkdown or quarto doc? If not, then the heatmap can only be so tall; otherwise, the bottom of the heatmap cannot be viewed
I guess you could wrap it in a div with scrollbars?
https://community.plotly.com/t/how-to-add-vertical-scroll-bar-on-horizontal-bar-chart/12342
I need to make the plot wide so each cell is approximately the shape of a square and I have ~650 columns. First I did
heatmaply(x, width = 14000)
which didn't seem to have any effect, then I did:heatmaply(x) %>% layout(width = 14000)
, which reported this:but it did make a wide heatmap in the Knitr HTML output. However the row side colors and dendrogram were stretched out and too wide.
See screenshot of reproducible example
Thanks! This package is Awesome!