You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be used to effectively set the stroke of heatmap cells. Without it, I can't replicate this ggplot2 example -- plotly/plotly.R#699
Reacted by Ian Channing, Tal Galili, Mart van de Ven, Dave Hirschfeld, nirvana-msu, Florian Schwarzmeier, Nina Satragno, Tiemen Schuijbroek, AdriwiTeK, Sifan Liu and 3 more
Hi @rreusser
Since my personal need for this is the ability to have a "grid like" look for the heatmaply R package, then actually "a constant gap between each cell" (defined on top of a ggplotly object derived from geom_tile), would be great. However, I'm not sure how to map that to the existing Aesthetics of geom_tile...
Thanks @cpsievert , this is very helpful! It would still be nice to have this issue resolved directly. But for now, this resolved the main feature I was looking for (i.e.: to add a grid of lines to heatmaply - talgalili/heatmaply@0f9f73b).
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson
I think this is still pertinent. This isn't the first time I try to add grid lines in-between cells, without success. I didn't find any other issue related to this, but I might have missed it (I'm working from the Python side, but I imagine it would have to be implemented here first).
Currently, the grid lines from axes are centered on the cells, instead of at their edges.
I'm trying to reproduce something like this, and parameters xgap /ygap + plot_bgcolor are not enough, since I have nans that share the background color.
Activity
talgalili commentedon Apr 9, 2017
BUMP.
I hope this could be resolved so that heatmaps would include the option to show cells grid.
Thanks.
rreusser commentedon Apr 9, 2017
@talgalili
xgapandygapfrom #868 are not an exact match to this feature, but they do accomplish padding for the cells, which may be of some help.talgalili commentedon Apr 9, 2017
Thanks @rreusser .
@cpsievert - could this help solve this: plotly/plotly.R#699
what do you think?
cpsievert commentedon Apr 9, 2017
@talgalili no,
xgap/ygapseem to specify a constant gap between each cell.Also, for ggplot2 parity, we need each cell border to respect linetype. Just adding
lty = 4to your example yields:talgalili commentedon Apr 9, 2017
Hi @rreusser
Since my personal need for this is the ability to have a "grid like" look for the heatmaply R package, then actually "a constant gap between each cell" (defined on top of a ggplotly object derived from geom_tile), would be great. However, I'm not sure how to map that to the existing Aesthetics of geom_tile...
cpsievert commentedon Apr 9, 2017
@talgalili use
style()to modify the attributes of existing traces:talgalili commentedon Apr 10, 2017
Thanks @cpsievert , this is very helpful! It would still be nice to have this issue resolved directly. But for now, this resolved the main feature I was looking for (i.e.: to add a grid of lines to heatmaply - talgalili/heatmaply@0f9f73b).
adriwitek commentedon Mar 1, 2021
I need to make a grid over a annotated heat map and this is very frustrating
gvwilson commentedon Jun 5, 2024
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson
rabyj commentedon Apr 28, 2025
I think this is still pertinent. This isn't the first time I try to add grid lines in-between cells, without success. I didn't find any other issue related to this, but I might have missed it (I'm working from the Python side, but I imagine it would have to be implemented here first).
Currently, the grid lines from axes are centered on the cells, instead of at their edges.
I'm trying to reproduce something like this, and parameters
xgap/ygap+plot_bgcolorare not enough, since I have nans that share the background color.Should a new issue be opened?