heatmaply icon indicating copy to clipboard operation
heatmaply copied to clipboard

How to change the row_cluster color in heatmaply?

Open wwinnerhoo opened this issue 1 year ago • 0 comments

Hi

To ensure our heatmap is friendly for color blinders, the default color by setting the row clusters ("k_row = 5") needs to be checked. However, I don't find related information. Could you tell me if your default setting is friendly for them? If not, could you please tell me how to replace the cluster color?

My code to generate the heatmap is below:

heatmaply(matrix_ara,dendrogram = "row",show_dendrogram = TRUE, scale=c("row"),
                      k_row = 5,
                      showticklabels = c(TRUE, FALSE),
                     scale_fill_gradient_fun = ggplot2::scale_fill_gradient2(
                       low =    '#0072b2', 
                        high =    '#fc3129'
                     ),
                     # specify the displayed values in the colorbar
                   fontsize_col = 15, fontsize_row = 10, column_text_angle=90 )

Thank you in advance!

Best, Hao

wwinnerhoo avatar Jun 14 '24 07:06 wwinnerhoo