R过热包热图:更改底轴标签的字体大小

时间:2017-03-07 13:09:48

标签: r heatmap

我想增加R中superheat包创建的热图的底轴标签大小。

根据vignette,可以通过bottom.label.size参数完成此操作。但是,这不会改变我的字体大小(请参阅下面的RSession),但只会更改标签写入框的边距:

library(dplyr)
library(superheat)

matrix(1:9, ncol = 3) %>% superheat(bottom.label.size = 0.1)

superheat with bottom label size 0.1

matrix(1:9, ncol = 3) %>% superheat(bottom.label.size = 0.05)

superheat with bottom label size 0.05

有谁知道如何控制这个?这是一个错误还是我错过了什么?

RSession信息:

R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] superheat_0.1.0 dplyr_0.5.0    

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.8      digest_0.6.11    assertthat_0.1   grid_3.3.2       R6_2.2.0         plyr_1.8.4      
 [7] gtable_0.2.0     DBI_0.5-1        magrittr_1.5     scales_0.4.1     ggplot2_2.2.1    lazyeval_0.2.0  
[13] labeling_0.3     tools_3.3.2      munsell_0.4.3    colorspace_1.3-2 tibble_1.2

1 个答案:

答案 0 :(得分:1)

matrix(1:9, ncol = 3) %>% superheat(bottom.label.size = 0.1, bottom.label.text.size = 10)

enter image description here