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
I am using ComplexHeatmap in my shiny app to produce heatmap. Unlike pheatmap , the heatmap is perfectly rendered in shiny and it is compabible with other interactive plots generated with plotly. Thank a lot.
I am wondering if there is a way to keep the annotation color unchanged (without specifying the annotation color) upon the reactive events in Shiny?
A simple example describing my need is as following:
FWIW: I too have wished for the same outside of Shiny context when replotting a heatmap. It is unsettling when the colors change apparently for no reason.
Because if you do not set the colors explicitly, random colors will be used (the ComplexHeatmap version of pheatmap). You can either set colors by annotation_colors argument or add a fixed random seed before you run pheatmap():
I am using
ComplexHeatmap
in my shiny app to produce heatmap. Unlike pheatmap , the heatmap is perfectly rendered in shiny and it is compabible with other interactive plots generated withplotly
. Thank a lot.I am wondering if there is a way to keep the annotation color unchanged (without specifying the annotation color) upon the reactive events in Shiny?
A simple example describing my need is as following:
When I re-run the above code, the annotation color changes accordingly.
Thanks a lot.
Dong
The text was updated successfully, but these errors were encountered: