Changing the colour of the dendrogram produced by heatmaply


I am looking for a way to inspect the object test_map here to find the level or list or lists responsible for the colouring to the dendrogram. I want to change the black colour to grey through normal assignment.


test_map <- 
    xlab = "Features",
    ylab = "Features",
    k_col = 1,
    k_row = 1



Created on 2022-02-11 by the reprex package (v2.0.1)

1 Like

For anyone wondering how to change it:

# Changing colour of dendogram to grey for x
test_map[["x"]][["data"]][[1]][["line"]][["color"]] = "rgba(179,179,179,1)"

Doing the one on the other axis is the same but you do need to find the right list in x to be able to do this.

1 Like

I tried to replace "x" with everything I could think of without any results, did you manage to change the color for the y axis?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.