[英]how to change the color key height in heatmap.2
我試圖減少熱圖的大小.2顏色鍵
現在是這樣的
key=T, # add the key color
key.title =NA,
cexRow = 0.75,
cexCol=0.75,
我想減少它的高度,變成這樣
這就是我繪制熱圖的方法
heatmap.2(mat_data,
key=T, # add the key color
key.xlab="label",
key.title =NA,
cexRow = 0.75,
cexCol=0.75,
#lhei = c(5,5),
#cellnote = mat_data, # will display the values
main = "title to be shonwn ", # heat map title
#notecol=NA, # change font color of cell labels to black
density.info="none", # turns off density plot inside color legend
trace="none", # turns off trace lines inside the heat map
margins =c(15,20), # widens margins around plot
col=myPalette, # use on color palette defined earlier
breaks=col_breaks, # enable color transition at specified limits
dendrogram="row", # only draw a row dendrogram
Colv="NA",
notecex=1.0)
我找到
密鑰大小= 1
您可以根據需要調整大小來改變大小
可以使用heatmap.2()
的lhei
參數進行設置
heatmap.2(data,lhei = c(1,7))
參數是長度為2的向量,並且看起來是鍵和熱圖的相對高度。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.