我正在尝试减小 heatmap.2 颜色键的大小
现在是这样的
key=T, # add the key color
key.title =NA,
cexRow = 0.75,
cexCol=0.75,
Run Code Online (Sandbox Code Playgroud)
我想降低它的高度并变成这样
这就是我绘制热图的方式
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)
Run Code Online (Sandbox Code Playgroud)
我找到
密钥大小=1
可以更改大小,因为您无权根据需要调整大小
这可以通过lhei参数设置heatmap.2()
heatmap.2(data,lhei = c(1,7))
Run Code Online (Sandbox Code Playgroud)
该参数是一个长度为 2 的向量,似乎是键和热图的相对高度。
| 归档时间: |
|
| 查看次数: |
5505 次 |
| 最近记录: |