Overlapping labels in heatmap

582 Views Asked by At

I am making an heatmap with "heatmaply" R package, but I have overlapping rownames (see red circled area). Any suggestion or tutorial about fixing this problem?

Thanks a lot! enter image description here

1

There are 1 best solutions below

0
Tal Galili On

You can use the fontsize_row argument to set it to a number smaller than 10.

E.g.:

library("heatmaply")
heatmaply(mtcars) # default fontsize_row is 10

enter image description here

library("heatmaply")
heatmaply(mtcars, fontsize_row = 5)

enter image description here