ice*_*fee 5 plot r heatmap bioconductor axis-labels
我正在使用ComplexHeatmap在 R 中创建热图。我在这里重新创建了一个小热图。我无法从文档中弄清楚如何调整 x 轴上文本的字体大小。
a = matrix(1:9, nrow = 3, ncol = 3)
rownames(a) = c("alphabet","xylophone","tornado")
colnames(a) = c("c1","c2","c3")
my_heatmap = ComplexHeatmap::Heatmap(
matrix = t(a),
col = RColorBrewer::brewer.pal(9, "RdBu"))
Run Code Online (Sandbox Code Playgroud)
这段代码产生这样的结果:

我想调整c("alphabet","xylophone","tornado")文本的字体大小,使其小得多。我该怎么做呢?
M--*_*M-- 12
You can use row_names_gp and column_names_gp to adjust y-axis and x-axis labels, respectively.
# if (!requireNamespace("BiocManager", quietly = TRUE))
# install.packages("BiocManager")
# BiocManager::install("ComplexHeatmap")
#
# library(ComplexHeatmap)
# library(grid)
Run Code Online (Sandbox Code Playgroud)
# if (!requireNamespace("BiocManager", quietly = TRUE))
# install.packages("BiocManager")
# BiocManager::install("ComplexHeatmap")
#
# library(ComplexHeatmap)
# library(grid)
Run Code Online (Sandbox Code Playgroud)
