Entering edit mode
3.8 years ago
shaden
▴
20
Hi, I am drawing a heatmap for the top 50 DEgenes in my matrix using this code:
aheatmap(highly_variable_lcpm,col=rev(morecols(50)),main="Top 50 most variable genes",annCol=metadata[, 2:3],labCol=metadata$`sample name`,
scale="row", width = 5, height = 10, cexRow = 5)
I am having difficulty resizing the gene names, they are very small barely readable. I have tried using only 30 genes but they are still small. resetting the cexRow to new values does not seem to change anything at all. I have also tried what is suggested elsewhere:(width = 5, height = 10) but it also changes nothing!
Is there another way to make labels larger?
Thanks!
I have never used aheatmap, but looking to the documentation, it seems that it's just like pheatmap. If your gene names are in the rows, I think playing with
fontsize_row
would help making the labels larger if I understood you correctly.Hi, unfortunately it's not like pheatmap
fontsize_row is not an argument in aheatmap
Did you try to set the
fontsize_row
to some bugger value? `Hi, fontsize_row is not an argument in aheatmap
"unused argument (fontsize_row = 5)"
Ok, seems like there are different packages for aheatmap and you are using aheatmap from NMF pkg
https://rdrr.io/github/nickytong/GenAnalysis/man/aheatmap.html
If yes, then the documentation says
So you first need to set a bigger fontsize and then set
cexRow
as a fraction of the fontsize set earlierYeah I have read this but what does it mean " set cexRow as a fraction of the fontsize set earlier"? I have tried (fontsize = 9, cexRow = 8) for example. The fontsize changes the outside stuff (title for example) , ceXRow does not affect anything all values look the same.
try the value of
cexRow
between 0 and 1, and play withfontsize
value (try 2-3 higher values)