ggtree icon indicating copy to clipboard operation
ggtree copied to clipboard

Feature Request: Add geom_raster in gheatmap()

Open thelingxichen opened this issue 4 years ago • 1 comments
trafficstars

Hi,

I am trying to use ggtree and gheatmap to visualize the marker genes from different single cells, and I got the left plot. Obviously, the marker pattern between different clusters is not clear. Then, I hardcoded the gheatmap function by changing "geom_tile" to "geom_raster", I got the right plot. Cleary, the raster heatmap shows a more distinct pattern when the plot size is small. Currently, I override the gheatmap function to achieve this raster effect, it would be more convenient if gheatmap can choose to plot from geom_tile or geom raster. Thanks a lot.

1636119885(1)

thelingxichen avatar Nov 05 '21 13:11 thelingxichen

I don't think it is a good idea. because geom_raster is a special case, please refer to this issue. And it only support coord_cartesian.

xiangpin avatar Nov 10 '21 10:11 xiangpin