2016-03-04 52 views
2

我已經在R中製作了我的第一張熱圖,但我需要縮小圖的字母大小,因爲它看起來很雜亂。R中的熱圖「我如何減小字母的大小?」

enter image description here

我不知道如何降低Y(軸向)的字母的大小。最後的代碼我用來做熱圖:

characlist <- list(list(c(1, 2, 3, 4)), c(1, 3, 2, NA)) 
str(characlist) 
heatmap(as.matrix(Mydata), 
     scale = "column", 
     col = heat.colors(2), 
     main = "Title", 
     Rowv = NA, 
     Colv = NA) 

回答

3

可以使用cexRowcexCol作爲參數傳遞給heatmap()